-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed bug that results in a false negative when two import statements… #9754
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… shadow the same symbol and an attribute is accessed between the two import statements. This addresses #9752.
Diff from mypy_primer, showing the effect of this PR on open source code: psycopg (https://github.com/psycopg/psycopg)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:69:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:69:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:144:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:144:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:157:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:157:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:172:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:172:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:175:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:175:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:191:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:191:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:199:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:199:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:207:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:207:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:215:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:215:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:224:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:224:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:230:32 - error: "NotSupportedError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:230:32 - error: "NotSupportedError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:238:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:238:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:247:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:247:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:263:13 - error: "waiting" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:263:13 - error: "waiting" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:275:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:275:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:294:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:294:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:301:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:301:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:308:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:308:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:320:20 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:320:20 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:347:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:347:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:389:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:389:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:394:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:394:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:403:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:403:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:498:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:498:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:500:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:500:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:502:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:502:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:504:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:504:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:515:32 - error: "OperationalError" is not a known attribute of module "psycopg" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/psycopg/tests/pq/test_pgconn.py:515:32 - error: "OperationalError" is not a known attribute of module "psycopg.generators" (reportAttributeAccessIssue)
... (truncated 24 lines) ...
ibis (https://github.com/ibis-project/ibis)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/__init__.py:342:29 - error: "auth" is not a known attribute of module "google.api_core.exceptions" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/__init__.py:634:23 - error: "api_core" is not a known attribute of module "google.auth.credentials" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/bigquery/__init__.py:1168:25 - error: "auth" is not a known attribute of module "google.api_core.exceptions" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/snowflake/__init__.py:337:33 - error: "snowpark" is not a known attribute of module "snowflake.connector" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/ibis/ibis/backends/snowflake/__init__.py:390:66 - error: "snowpark" is not a known attribute of module "snowflake.connector" (reportAttributeAccessIssue)
- 7452 errors, 120 warnings, 0 informations
+ 7457 errors, 120 warnings, 0 informations
sympy (https://github.com/sympy/sympy)
+ /tmp/mypy_primer/projects/sympy/sympy/utilities/matchpy_connector.py:288:16 - error: Type "Basic" is not assignable to declared type "Expr"
+ "Basic" is not assignable to "Expr" (reportAssignmentType)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_matchpy_connector.py:120:18 - error: Argument of type "Equality | Unknown | Relational | Unequality | Integer" cannot be assigned to parameter "expr" of type "Expr" in function "add"
+ /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_matchpy_connector.py:120:18 - error: Argument of type "Equality | Unknown" cannot be assigned to parameter "expr" of type "Expr" in function "add"
- Type "Equality | Unknown | Relational | Unequality | Integer" is not assignable to type "Expr"
+ Type "Equality | Unknown" is not assignable to type "Expr"
- "Relational" is not assignable to "Expr" (reportArgumentType)
+ "Equality" is not assignable to "Expr" (reportArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_matchpy_connector.py:123:18 - error: Argument of type "Equality | Unknown | Relational | Unequality | Integer" cannot be assigned to parameter "expr" of type "Expr" in function "add"
+ /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_matchpy_connector.py:123:18 - error: Argument of type "Equality | Unknown" cannot be assigned to parameter "expr" of type "Expr" in function "add"
- Type "Equality | Unknown | Relational | Unequality | Integer" is not assignable to type "Expr"
+ Type "Equality | Unknown" is not assignable to type "Expr"
- "Relational" is not assignable to "Expr" (reportArgumentType)
+ "Equality" is not assignable to "Expr" (reportArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_matchpy_connector.py:126:9 - error: Argument of type "Equality | Unknown | Relational | Unequality | Integer" cannot be assigned to parameter "expr" of type "Expr" in function "add"
+ /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_matchpy_connector.py:126:9 - error: Argument of type "Equality | Unknown" cannot be assigned to parameter "expr" of type "Expr" in function "add"
- Type "Equality | Unknown | Relational | Unequality | Integer" is not assignable to type "Expr"
+ Type "Equality | Unknown" is not assignable to type "Expr"
- "Relational" is not assignable to "Expr" (reportArgumentType)
+ "Equality" is not assignable to "Expr" (reportArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_matchpy_connector.py:132:9 - error: Argument of type "Equality | Unknown | Relational | Unequality | Integer" cannot be assigned to parameter "expr" of type "Expr" in function "add"
+ /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_matchpy_connector.py:132:9 - error: Argument of type "Equality | Unknown" cannot be assigned to parameter "expr" of type "Expr" in function "add"
- Type "Equality | Unknown | Relational | Unequality | Integer" is not assignable to type "Expr"
+ Type "Equality | Unknown" is not assignable to type "Expr"
- "Relational" is not assignable to "Expr" (reportArgumentType)
+ "Equality" is not assignable to "Expr" (reportArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:895:12 - error: Operator "/" not supported for types "Equality | Unknown | Relational | Unequality | Integer" and "Literal[2]"
+ /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:895:12 - error: Operator "/" not supported for types "Equality | Unknown" and "Literal[2]"
- Operator "/" not supported for types "Equality" and "Literal[2]"
- Operator "/" not supported for types "Relational" and "Literal[2]"
- Operator "/" not supported for types "Unequality" and "Literal[2]" (reportOperatorIssue)
+ Operator "/" not supported for types "Equality" and "Literal[2]" (reportOperatorIssue)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1863:12 - error: Cannot access attribute "combsimp" for class "Relational"
- Attribute "combsimp" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1863:12 - error: Cannot access attribute "combsimp" for class "Unequality"
- Attribute "combsimp" is unknown (reportAttributeAccessIssue)
- Attribute "factor" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1911:14 - error: Cannot access attribute "factor" for class "Relational"
- Attribute "factor" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1911:14 - error: Cannot access attribute "factor" for class "Unequality"
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1918:14 - error: Cannot access attribute "combsimp" for class "Relational"
- Attribute "combsimp" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1918:14 - error: Cannot access attribute "combsimp" for class "Unequality"
- Attribute "combsimp" is unknown (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1992:22 - error: Argument of type "Equality | Unknown | NaN | Sum" cannot be assigned to parameter "x" of type "ConvertibleToFloat" in function "__new__"
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1932:12 - error: Cannot access attribute "combsimp" for class "Relational"
- Attribute "combsimp" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1932:12 - error: Cannot access attribute "combsimp" for class "Unequality"
- Attribute "combsimp" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:1992:22 - error: Argument of type "Equality | Unknown | Relational | Unequality | Integer | NaN | Sum" cannot be assigned to parameter "x" of type "ConvertibleToFloat" in function "__new__"
- Type "Equality | Unknown | Relational | Unequality | Integer | NaN | Sum" is not assignable to type "ConvertibleToFloat"
+ Type "Equality | Unknown | NaN | Sum" is not assignable to type "ConvertibleToFloat"
- Type "Relational" is not assignable to type "ConvertibleToFloat"
+ Type "Equality" is not assignable to type "ConvertibleToFloat"
- "Relational" is not assignable to "str"
+ "Equality" is not assignable to "str"
- "Relational" is incompatible with protocol "Buffer"
+ "Equality" is incompatible with protocol "Buffer"
- "Relational" is incompatible with protocol "SupportsFloat"
+ "Equality" is incompatible with protocol "SupportsFloat"
- "Relational" is incompatible with protocol "SupportsIndex"
+ "Equality" is incompatible with protocol "SupportsIndex"
- Attribute "gammasimp" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:2074:56 - error: Cannot access attribute "gammasimp" for class "Relational"
- Attribute "gammasimp" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:2074:56 - error: Cannot access attribute "gammasimp" for class "Unequality"
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:2973:37 - error: Operator "*" not supported for types "Literal[2]" and "Equality | Unknown | Relational | Unequality | Integer | NaN | Sum"
+ /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:2973:37 - error: Operator "*" not supported for types "Literal[2]" and "Equality | Unknown | NaN | Sum"
- Operator "*" not supported for types "Literal[2]" and "Equality"
- Operator "*" not supported for types "Literal[2]" and "Relational"
- Operator "*" not supported for types "Literal[2]" and "Unequality" (reportOperatorIssue)
+ Operator "*" not supported for types "Literal[2]" and "Equality" (reportOperatorIssue)
- /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:2978:17 - error: Operator "*" not supported for types "Literal[2]" and "Equality | Unknown | Relational | Unequality | Integer | NaN | Sum"
+ /tmp/mypy_primer/projects/sympy/sympy/utilities/tests/test_wester.py:2978:17 - error: Operator "*" not supported for types "Literal[2]" and "Equality | Unknown | NaN | Sum"
- Operator "*" not supported for types "Literal[2]" and "Equality"
- Operator "*" not supported for types "Literal[2]" and "Relational"
- Operator "*" not supported for types "Literal[2]" and "Unequality" (reportOperatorIssue)
+ Operator "*" not supported for types "Literal[2]" and "Equality" (reportOperatorIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/vector/dyadic.py:233:7 - error: Base classes for class "DyadicMul" define method "as_content_primitive" in incompatible way
+ Return type mismatch: base method returns type "tuple[One, Self@Expr]", override returns type "tuple[One | NegativeOne | Zero | Integer | Rational | NaN | ComplexInfinity | Half | Unknown, Self@Mul]"
+ "tuple[One | NegativeOne | Zero | Integer | Rational | NaN | ComplexInfinity | Half | Unknown, Self@Mul]" is not assignable to "tuple[One, Self@Expr]"
+ Tuple entry 1 is incorrect type
+ Type "One | NegativeOne | Zero | Integer | Rational | NaN | ComplexInfinity | Half | Unknown" is not assignable to type "One"
+ "ComplexInfinity" is not assignable to "One" (reportIncompatibleMethodOverride)
... (truncated 85 lines) ...
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- /tmp/mypy_primer/projects/mongo-python-driver/pymongo/ssl_support.py:54:16 - error: Type "SSLError" is not assignable to declared type "type[SSLError]"
+ /tmp/mypy_primer/projects/mongo-python-driver/pymongo/ssl_support.py:54:16 - error: Type "pymongo.pyopenssl_context.SSLError | pymongo.ssl_context.SSLError" is not assignable to declared type "type[SSLError]"
+ Type "pymongo.pyopenssl_context.SSLError | pymongo.ssl_context.SSLError" is not assignable to type "type[SSLError]"
- "SSLError" is not assignable to "type[SSLError]"
+ "SSLError" is not assignable to "type[SSLError]"
- Type "SSLError" is not assignable to type "type[SSLError]" (reportAssignmentType)
+ Type "SSLError" is not assignable to type "type[SSLError]" (reportAssignmentType)
+ /tmp/mypy_primer/projects/mongo-python-driver/pymongo/ssl_support.py:105:16 - error: Type "pymongo.pyopenssl_context.SSLContext | ssl.SSLContext" is not assignable to return type "SSLContext"
+ Type "pymongo.pyopenssl_context.SSLContext | ssl.SSLContext" is not assignable to type "SSLContext"
+ "ssl.SSLContext" is not assignable to "pymongo.pyopenssl_context.SSLContext" (reportReturnType)
- 1167 errors, 28 warnings, 0 informations
+ 1168 errors, 28 warnings, 0 informations
mypy-protobuf (https://github.com/dropbox/mypy-protobuf)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:34:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:50:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:66:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:82:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:117:14 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:121:14 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:125:14 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:129:14 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:133:22 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:148:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:152:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:156:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:160:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/dummy_pb2_grpc.pyi:201:111 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:35:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:51:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:67:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:98:14 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:102:14 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:106:14 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:110:22 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:121:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:125:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:129:10 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/mypy-protobuf/test/generated/testproto/grpc/import_pb2_grpc.pyi:161:113 - error: "aio" is not a known attribute of module "grpc" (reportAttributeAccessIssue)
- 33 errors, 25 warnings, 0 informations
+ 58 errors, 25 warnings, 0 informations
dd-trace-py (https://github.com/DataDog/dd-trace-py)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:52:29 - error: "client" is not a known attribute of module "botocore.exceptions" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:128:25 - error: "client" is not a known attribute of module "botocore.exceptions" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:130:14 - error: "client" is not a known attribute of module "botocore.exceptions" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:132:14 - error: "_datadog_integration" is not a known attribute of module "botocore.client" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:132:14 - error: "_datadog_integration" is not a known attribute of module "botocore.exceptions" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:134:25 - error: "client" is not a known attribute of module "botocore.exceptions" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:136:25 - error: "parsers" is not a known attribute of module "botocore.client" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:136:25 - error: "parsers" is not a known attribute of module "botocore.exceptions" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:142:25 - error: "client" is not a known attribute of module "botocore.exceptions" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:143:18 - error: "client" is not a known attribute of module "botocore.exceptions" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:144:25 - error: "parsers" is not a known attribute of module "botocore.client" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:144:25 - error: "parsers" is not a known attribute of module "botocore.exceptions" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/botocore/patch.py:145:25 - error: "client" is not a known attribute of module "botocore.exceptions" (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/fastapi/patch.py:72:13 - error: "_datadog_patch" is not a known attribute of module "fastapi" (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/dd-trace-py/ddtrace/contrib/internal/fastapi/patch.py:72:13 - error: "_datadog_patch" is not a known attribute of module "fastapi.routing" (reportAttributeAccessIssue)
... (truncated 64 lines) ...``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… shadow the same symbol and an attribute is accessed between the two import statements. This addresses #9752.