Skip to content

Update typeshed to latest#11211

Merged
rchiodo merged 4 commits intomicrosoft:mainfrom
rchiodo:rchiodo/typeshed
Jan 7, 2026
Merged

Update typeshed to latest#11211
rchiodo merged 4 commits intomicrosoft:mainfrom
rchiodo:rchiodo/typeshed

Conversation

@rchiodo
Copy link
Collaborator

@rchiodo rchiodo commented Jan 7, 2026

Also add script to do this automatically

@rchiodo rchiodo enabled auto-merge (squash) January 7, 2026 23:08
@rchiodo rchiodo merged commit cba32ea into microsoft:main Jan 7, 2026
16 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

Diff from mypy_primer, showing the effect of this PR on open source code:

tornado (https://github.com/tornadoweb/tornado)
+   .../projects/tornado/tornado/platform/asyncio.py:625:17 - error: Argument of type "tuple[list[_FileDescriptorLike] | list[int], list[_FileDescriptorLike]]" cannot be assigned to parameter "args" of type "_Ts@call_soon_threadsafe" in function "call_soon_threadsafe"
+     Type "*tuple[list[_FileDescriptorLike] | list[int], list[_FileDescriptorLike]]" is not assignable to type "*tuple[List[_FileDescriptorLike], List[_FileDescriptorLike]]"
+       "*tuple[list[_FileDescriptorLike] | list[int], list[_FileDescriptorLike]]" is not assignable to "*tuple[List[_FileDescriptorLike], List[_FileDescriptorLike]]"
+         Tuple entry 1 is incorrect type
+           Type "list[_FileDescriptorLike] | list[int]" is not assignable to type "List[_FileDescriptorLike]"
+             "list[int]" is not assignable to "List[_FileDescriptorLike]" (reportArgumentType)
- 207 errors, 62 warnings, 0 informations
+ 208 errors, 62 warnings, 0 informations

ibis (https://github.com/ibis-project/ibis)
+   .../projects/ibis/ibis/common/tests/test_egraph.py:59:12 - error: No overloads for "get" match the provided arguments
+     Argument types: (Literal[5], Literal[5]) (reportCallIssue)
+   .../projects/ibis/ibis/expr/types/structs.py:225:14 - error: Cannot assign to attribute "__dict__" for class "StructValue*"
+     "__dict__" is declared as Final and cannot be reassigned (reportAttributeAccessIssue)
+   .../projects/ibis/ibis/expr/types/structs.py:225:14 - error: "__dict__" cannot be redeclared because parent class "type" declares it as Final (reportGeneralTypeIssues)
- 7364 errors, 237 warnings, 0 informations
+ 7367 errors, 237 warnings, 0 informations

sympy (https://github.com/sympy/sympy)
-   .../projects/sympy/sympy/calculus/accumulationbounds.py:309:16 - error: Type "(Self@AccumulationBounds, complex) -> (Expr | _NotImplementedType)" is not assignable to declared type "(Self@Expr, Expr | complex) -> Expr"
+   .../projects/sympy/sympy/calculus/accumulationbounds.py:309:16 - error: Type "(Self@AccumulationBounds, complex) -> (Expr | NotImplementedType)" is not assignable to declared type "(Self@Expr, Expr | complex) -> Expr"
-     Type "(Self@AccumulationBounds, complex) -> (Expr | _NotImplementedType)" is not assignable to type "(Self@Expr, Expr | complex) -> Expr"
+     Type "(Self@AccumulationBounds, complex) -> (Expr | NotImplementedType)" is not assignable to type "(Self@Expr, Expr | complex) -> Expr"
-   .../projects/sympy/sympy/calculus/accumulationbounds.py:385:16 - error: Type "(Self@AccumulationBounds, complex) -> (Self@AccumulationBounds | <subclass of <subclass of complex and Expr> and AccumBounds> | <subclass of <subclass of float and Expr> and AccumBounds> | <subclass of <subclass of int and Expr> and AccumBounds> | Expr | Zero | <subclass of <subclass of complex and Expr> and Order> | <subclass of <subclass of float and Expr> and Order> | <subclass of <subclass of int and Expr> and Order> | _NotImplementedType)" is not assignable to declared type "(Self@Expr, Expr | complex) -> Expr"
+   .../projects/sympy/sympy/calculus/accumulationbounds.py:385:16 - error: Type "(Self@AccumulationBounds, complex) -> (Self@AccumulationBounds | <subclass of <subclass of complex and Expr> and AccumBounds> | <subclass of <subclass of float and Expr> and AccumBounds> | <subclass of <subclass of int and Expr> and AccumBounds> | Expr | Zero | <subclass of <subclass of complex and Expr> and Order> | <subclass of <subclass of float and Expr> and Order> | <subclass of <subclass of int and Expr> and Order> | NotImplementedType)" is not assignable to declared type "(Self@Expr, Expr | complex) -> Expr"
-     Type "(Self@AccumulationBounds, complex) -> (Self@AccumulationBounds | <subclass of <subclass of complex and Expr> and AccumBounds> | <subclass of <subclass of float and Expr> and AccumBounds> | <subclass of <subclass of int and Expr> and AccumBounds> | Expr | Zero | <subclass of <subclass of complex and Expr> and Order> | <subclass of <subclass of float and Expr> and Order> | <subclass of <subclass of int and Expr> and Order> | _NotImplementedType)" is not assignable to type "(Self@Expr, Expr | complex) -> Expr"
+     Type "(Self@AccumulationBounds, complex) -> (Self@AccumulationBounds | <subclass of <subclass of complex and Expr> and AccumBounds> | <subclass of <subclass of float and Expr> and AccumBounds> | <subclass of <subclass of int and Expr> and AccumBounds> | Expr | Zero | <subclass of <subclass of complex and Expr> and Order> | <subclass of <subclass of float and Expr> and Order> | <subclass of <subclass of int and Expr> and Order> | NotImplementedType)" is not assignable to type "(Self@Expr, Expr | complex) -> Expr"
-   .../projects/sympy/sympy/concrete/tests/test_products.py:157:25 - error: Operator "/" not supported for types "tuple[Unknown, ...] | Unknown | Product | Basic | Expr | One | BooleanFalse | BooleanTrue | Equality | NaN" and "Unknown | tuple[Unknown, ...] | Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType"
+   .../projects/sympy/sympy/concrete/tests/test_products.py:157:25 - error: Operator "/" not supported for types "tuple[Unknown, ...] | Unknown | Product | Basic | Expr | One | BooleanFalse | BooleanTrue | Equality | NaN" and "Unknown | tuple[Unknown, ...] | Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | NotImplementedType"
-   .../projects/sympy/sympy/core/add.py:1070:46 - error: Operator "+" not supported for types "One | Zero | Unknown | None" and "One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType | Expr | Unknown"
+   .../projects/sympy/sympy/core/add.py:1070:46 - error: Operator "+" not supported for types "One | Zero | Unknown | None" and "One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | NotImplementedType | Expr | Unknown"
-   .../projects/sympy/sympy/core/add.py:1070:46 - error: Operator "+" not supported for types "One | Zero | Unknown | None" and "One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType | Expr"
+   .../projects/sympy/sympy/core/add.py:1070:46 - error: Operator "+" not supported for types "One | Zero | Unknown | None" and "One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | NotImplementedType | Expr"
-   .../projects/sympy/sympy/core/expr.py:3084:34 - error: Operator "*" not supported for types "ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float | _NotImplementedType | Expr" and "Symbol | Basic | Unknown"
+   .../projects/sympy/sympy/core/expr.py:3084:34 - error: Operator "*" not supported for types "ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float | NotImplementedType | Expr" and "Symbol | Basic | Unknown"
-   .../projects/sympy/sympy/core/expr.py:3085:34 - error: Operator "*" not supported for types "ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float | _NotImplementedType | Expr" and "Symbol | Basic | Unknown"
+   .../projects/sympy/sympy/core/expr.py:3085:34 - error: Operator "*" not supported for types "ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float | NotImplementedType | Expr" and "Symbol | Basic | Unknown"
-   .../projects/sympy/sympy/core/expr.py:3090:36 - error: Operator "*" not supported for types "ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float | _NotImplementedType | Expr" and "Symbol | Basic | Unknown"
+   .../projects/sympy/sympy/core/expr.py:3090:36 - error: Operator "*" not supported for types "ComplexInfinity | NaN | Rational | Zero | Infinity | NegativeInfinity | Float | NotImplementedType | Expr" and "Symbol | Basic | Unknown"
-   .../projects/sympy/sympy/core/mod.py:221:24 - error: Operator "-" not supported for type "Unknown | Zero | Poly | Any | One | NegativeOne | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType | Expr | Add | Basic | Dict | Mod*" (reportOperatorIssue)
+   .../projects/sympy/sympy/core/mod.py:221:24 - error: Operator "-" not supported for type "Unknown | Zero | Poly | Any | One | NegativeOne | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | NotImplementedType | Expr | Add | Basic | Dict | Mod*" (reportOperatorIssue)
-   .../projects/sympy/sympy/core/mod.py:230:13 - error: Operator "*=" not supported for types "Unknown | Expr | Add | Basic | Dict | Self@Mod" and "Unknown | Zero | Poly | Any | One | NegativeOne | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType | Expr"
+   .../projects/sympy/sympy/core/mod.py:230:13 - error: Operator "*=" not supported for types "Unknown | Expr | Add | Basic | Dict | Self@Mod" and "Unknown | Zero | Poly | Any | One | NegativeOne | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | NotImplementedType | Expr"
-     Return type mismatch: base method returns type "tuple[Expr, Expr]", override returns type "tuple[Mul, Zero] | tuple[Zero, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational] | tuple[Expr, Expr] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number | Unknown, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown | Infinity | NegativeInfinity | Float | Number] | None"
+     Return type mismatch: base method returns type "tuple[Expr, Expr]", override returns type "tuple[Mul, Zero] | tuple[Zero, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational] | tuple[Expr, Expr] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | NotImplementedType, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | NotImplementedType] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number | Unknown, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown | Infinity | NegativeInfinity | Float | Number] | None"
-       Type "tuple[Mul, Zero] | tuple[Zero, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational] | tuple[Expr, Expr] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | _NotImplementedType] | tuple[Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Infinity | NegativeInfinity | Float | Number | Unknown, Expr | One | NegativeOne | Zero | Integer | NaN | ComplexInfinity | Rational | Unknown | Infinity | NegativeInfinity | Float | Number] | None" is not assignable to type "tuple[Expr, Expr]"

... (truncated 1304 lines) ...

paasta (https://github.com/yelp/paasta)
+ .../projects/paasta/paasta_tools/api/settings.py
+   .../projects/paasta/paasta_tools/api/settings.py:25:16 - error: Type "str | None" is not assignable to declared type "str"
+     Type "str | None" is not assignable to type "str"
+       "None" is not assignable to "str" (reportAssignmentType)
- 1190 errors, 114 warnings, 0 informations
+ 1191 errors, 114 warnings, 0 informations

trio (https://github.com/python-trio/trio)
+   .../projects/trio/src/trio/_core/_tests/test_asyncgen.py:309:52 - error: "f_locals" is not a known attribute of "None" (reportOptionalMemberAccess)
+   .../projects/trio/src/trio/_core/_tests/test_asyncgen.py:313:52 - error: "f_locals" is not a known attribute of "None" (reportOptionalMemberAccess)
+   .../projects/trio/src/trio/_util.py:301:32 - error: "f_globals" is not a known attribute of "None" (reportOptionalMemberAccess)
- 1570 errors, 13 warnings, 0 informations
+ 1573 errors, 13 warnings, 0 informations

aiohttp (https://github.com/aio-libs/aiohttp)
- .../projects/aiohttp/aiohttp/base_protocol.py
-   .../projects/aiohttp/aiohttp/base_protocol.py:10:17 - error: Type "tuple[Literal['_loop'], Literal['_paused'], Literal['_drain_waiter'], Literal['_connection_lost'], Literal['_reading_paused'], Literal['transport']]" is not assignable to declared type "tuple[()]"
-     "tuple[Literal['_loop'], Literal['_paused'], Literal['_drain_waiter'], Literal['_connection_lost'], Literal['_reading_paused'], Literal['transport']]" is not assignable to "tuple[()]"
-       Tuple size mismatch; expected 0 but received 6 (reportAssignmentType)
- 50 errors, 4 warnings, 0 informations
+ 49 errors, 4 warnings, 0 informations

poetry (https://github.com/python-poetry/poetry)
+   .../projects/poetry/src/poetry/utils/env/base_env.py:269:23 - error: Cannot access attribute "pop" for class "MappingProxyType[str, Any]"
+     Attribute "pop" is unknown (reportAttributeAccessIssue)
+   .../projects/poetry/src/poetry/utils/env/base_env.py:270:23 - error: Cannot access attribute "pop" for class "MappingProxyType[str, Any]"
+     Attribute "pop" is unknown (reportAttributeAccessIssue)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "name" of type "str" in function "setup"
+   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "name" of type "str | None" in function "setup"
-     Type "str | list[str]" is not assignable to type "str"
+     Type "str | list[str]" is not assignable to type "str | None"
+       Type "list[str]" is not assignable to type "str | None"
+         "list[str]" is not assignable to "str"
-       "list[str]" is not assignable to "str" (reportArgumentType)
+         "list[str]" is not assignable to "None" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "version" of type "str" in function "setup"
+   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "version" of type "str | None" in function "setup"
-     Type "str | list[str]" is not assignable to type "str"
+     Type "str | list[str]" is not assignable to type "str | None"
+       Type "list[str]" is not assignable to type "str | None"
+         "list[str]" is not assignable to "str"
-       "list[str]" is not assignable to "str" (reportArgumentType)
+         "list[str]" is not assignable to "None" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "description" of type "str" in function "setup"
+   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "author" of type "str | None" in function "setup"
-     Type "str | list[str]" is not assignable to type "str"
+     Type "str | list[str]" is not assignable to type "str | None"
+       Type "list[str]" is not assignable to type "str | None"
+         "list[str]" is not assignable to "str"
-       "list[str]" is not assignable to "str" (reportArgumentType)
+         "list[str]" is not assignable to "None" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "long_description" of type "str" in function "setup"
+   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "author_email" of type "str | None" in function "setup"
-     Type "str | list[str]" is not assignable to type "str"
+     Type "str | list[str]" is not assignable to type "str | None"
+       Type "list[str]" is not assignable to type "str | None"
+         "list[str]" is not assignable to "str"
-       "list[str]" is not assignable to "str" (reportArgumentType)
+         "list[str]" is not assignable to "None" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "long_description_content_type" of type "str" in function "setup"
+   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "maintainer" of type "str | None" in function "setup"
-     Type "str | list[str]" is not assignable to type "str"
+     Type "str | list[str]" is not assignable to type "str | None"
+       Type "list[str]" is not assignable to type "str | None"
+         "list[str]" is not assignable to "str"
-       "list[str]" is not assignable to "str" (reportArgumentType)
+         "list[str]" is not assignable to "None" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "author" of type "str" in function "setup"
+   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "maintainer_email" of type "str | None" in function "setup"
-     Type "str | list[str]" is not assignable to type "str"
+     Type "str | list[str]" is not assignable to type "str | None"
+       Type "list[str]" is not assignable to type "str | None"
+         "list[str]" is not assignable to "str"
-       "list[str]" is not assignable to "str" (reportArgumentType)
+         "list[str]" is not assignable to "None" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "author_email" of type "str" in function "setup"
+   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "url" of type "str | None" in function "setup"
-     Type "str | list[str]" is not assignable to type "str"
+     Type "str | list[str]" is not assignable to type "str | None"
+       Type "list[str]" is not assignable to type "str | None"
+         "list[str]" is not assignable to "str"
-       "list[str]" is not assignable to "str" (reportArgumentType)
+         "list[str]" is not assignable to "None" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "maintainer" of type "str" in function "setup"
+   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "license" of type "str | None" in function "setup"
-     Type "str | list[str]" is not assignable to type "str"
+     Type "str | list[str]" is not assignable to type "str | None"
+       Type "list[str]" is not assignable to type "str | None"
+         "list[str]" is not assignable to "str"
-       "list[str]" is not assignable to "str" (reportArgumentType)
+         "list[str]" is not assignable to "None" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "maintainer_email" of type "str" in function "setup"
+   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "description" of type "str | None" in function "setup"
-     Type "str | list[str]" is not assignable to type "str"
+     Type "str | list[str]" is not assignable to type "str | None"
+       Type "list[str]" is not assignable to type "str | None"
+         "list[str]" is not assignable to "str"
-       "list[str]" is not assignable to "str" (reportArgumentType)
+         "list[str]" is not assignable to "None" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "url" of type "str" in function "setup"
+   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "long_description" of type "str | None" in function "setup"
-     Type "str | list[str]" is not assignable to type "str"
+     Type "str | list[str]" is not assignable to type "str | None"
+       Type "list[str]" is not assignable to type "str | None"
+         "list[str]" is not assignable to "str"
-       "list[str]" is not assignable to "str" (reportArgumentType)
+         "list[str]" is not assignable to "None" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "download_url" of type "str" in function "setup"
+   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "download_url" of type "str | None" in function "setup"
-     Type "str | list[str]" is not assignable to type "str"
+     Type "str | list[str]" is not assignable to type "str | None"
+       Type "list[str]" is not assignable to type "str | None"
+         "list[str]" is not assignable to "str"
-       "list[str]" is not assignable to "str" (reportArgumentType)
+         "list[str]" is not assignable to "None" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "packages" of type "list[str]" in function "setup"
-     Type "str | list[str]" is not assignable to type "list[str]"
-       "str" is not assignable to "list[str]" (reportArgumentType)
-   .../projects/poetry/tests/fixtures/git/github.com/demo/no-dependencies/setup.py:18:9 - error: Argument of type "str | list[str]" cannot be assigned to parameter "py_modules" of type "list[str]" in function "setup"

... (truncated 1662 lines) ...

prefect (https://github.com/PrefectHQ/prefect)
+   .../projects/prefect/src/integrations/prefect-gcp/prefect_gcp/bigquery.py:945:23 - error: Cannot access attribute "update" for class "MappingProxyType[str, Any]"
+     Attribute "update" is unknown (reportAttributeAccessIssue)
+   .../projects/prefect/src/integrations/prefect-snowflake/prefect_snowflake/database.py:824:23 - error: Cannot access attribute "update" for class "MappingProxyType[str, Any]"
+     Attribute "update" is unknown (reportAttributeAccessIssue)
+   .../projects/prefect/src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/database.py:786:23 - error: Cannot access attribute "update" for class "MappingProxyType[str, Any]"
+     Attribute "update" is unknown (reportAttributeAccessIssue)
- 5350 errors, 173 warnings, 0 informations
+ 5353 errors, 173 warnings, 0 informations

mkdocs (https://github.com/mkdocs/mkdocs)
-   .../projects/mkdocs/mkdocs/plugins.py:493:7 - error: Base classes for class "PluginCollection" define method "get" in incompatible way
-     Override does not handle all overloads of base method (reportIncompatibleMethodOverride)
-   .../projects/mkdocs/mkdocs/plugins.py:493:7 - error: Base classes for class "PluginCollection" define method "pop" in incompatible way
-     Override does not handle all overloads of base method (reportIncompatibleMethodOverride)
- 168 errors, 23 warnings, 0 informations
+ 166 errors, 23 warnings, 0 informations

pyodide (https://github.com/pyodide/pyodide)
+ .../projects/pyodide/pyodide-build/pyodide_build/vendor/loky.py
+   .../projects/pyodide/pyodide-build/pyodide_build/vendor/loky.py:149:26 - error: Argument of type "str | None" cannot be assigned to parameter "x" of type "ConvertibleToInt" in function "__new__"
+     Type "str | None" is not assignable to type "ConvertibleToInt"
+       Type "None" is not assignable to type "ConvertibleToInt"
+         "None" is not assignable to "str"
+         "None" is incompatible with protocol "Buffer"
+           "__buffer__" is not present
+         "None" is incompatible with protocol "SupportsInt"
+           "__int__" is not present
+         "None" is incompatible with protocol "SupportsIndex"
+     ... (reportArgumentType)
+   .../projects/pyodide/pyodide-build/pyodide_build/vendor/loky.py:149:26 - error: Argument of type "str | None" cannot be assigned to parameter "x" of type "ConvertibleToInt" in function "__new__"
+     Type "str | None" is not assignable to type "ConvertibleToInt"
+       Type "None" is not assignable to type "ConvertibleToInt"
+         "None" is not assignable to "str"
+         "None" is incompatible with protocol "Buffer"
+           "__buffer__" is not present
+         "None" is incompatible with protocol "SupportsInt"
+           "__int__" is not present
+         "None" is incompatible with protocol "SupportsIndex" (reportArgumentType)
-   .../projects/pyodide/pyodide-build/pyodide_build/xbuildenv_releases.py:220:11 - error: No overloads for "get" match the provided arguments
-     Argument types: (Literal['PYODIDE_CROSS_BUILD_ENV_METADATA_URL'], Literal['https://pyodide.github.io/pyodide/api/pyodide-cros…']) (reportCallIssue)
-   .../projects/pyodide/src/py/_pyodide/_core_docs.py:1120:9 - error: Method "get" overrides class "Mapping" in an incompatible manner
-     Override does not handle all overloads of base method (reportIncompatibleMethodOverride)
-   .../projects/pyodide/src/py/pyodide/console.py:434:46 - error: Argument of type "_WriteStream" cannot be assigned to parameter "new_target" of type "_T_io@redirect_stdout" in function "__init__"
-     Type "_WriteStream" is not assignable to type "IO[str] | None"
-       Type "_WriteStream" is not assignable to type "IO[str] | None"
-         "_WriteStream" is not assignable to "IO[str]"
-         "_WriteStream" is not assignable to "None" (reportArgumentType)
-   .../projects/pyodide/src/py/pyodide/console.py:438:46 - error: Argument of type "_WriteStream" cannot be assigned to parameter "new_target" of type "_T_io@redirect_stderr" in function "__init__"
-     Type "_WriteStream" is not assignable to type "IO[str] | None"
-       Type "_WriteStream" is not assignable to type "IO[str] | None"
-         "_WriteStream" is not assignable to "IO[str]"
-         "_WriteStream" is not assignable to "None" (reportArgumentType)
- 914 errors, 18 warnings, 0 informations
+ 912 errors, 18 warnings, 0 informations

core (https://github.com/home-assistant/core)
+   .../projects/core/homeassistant/components/button/__init__.py:121:23 - error: Cannot access attribute "pop" for class "MappingProxyType[str, Any]"
+     Attribute "pop" is unknown (reportAttributeAccessIssue)
+   .../projects/core/homeassistant/components/camera/__init__.py:669:23 - error: Cannot access attribute "pop" for class "MappingProxyType[str, Any]"
+     Attribute "pop" is unknown (reportAttributeAccessIssue)
+   .../projects/core/homeassistant/components/homekit_controller/entity.py:82:27 - error: Cannot access attribute "pop" for class "MappingProxyType[str, Any]"
+     Attribute "pop" is unknown (reportAttributeAccessIssue)
+   .../projects/core/homeassistant/components/notify/__init__.py:148:23 - error: Cannot access attribute "pop" for class "MappingProxyType[str, Any]"
+     Attribute "pop" is unknown (reportAttributeAccessIssue)
+   .../projects/core/homeassistant/components/systemmonitor/coordinator.py:12:28 - error: "sbattery" is unknown import symbol (reportAttributeAccessIssue)
+   .../projects/core/homeassistant/components/systemmonitor/coordinator.py:12:38 - error: "sdiskusage" is unknown import symbol (reportAttributeAccessIssue)
+   .../projects/core/homeassistant/components/systemmonitor/coordinator.py:12:50 - error: "shwtemp" is unknown import symbol (reportAttributeAccessIssue)
+   .../projects/core/homeassistant/components/systemmonitor/coordinator.py:12:59 - error: "snetio" is unknown import symbol (reportAttributeAccessIssue)
+   .../projects/core/homeassistant/components/systemmonitor/coordinator.py:12:67 - error: "snicaddr" is unknown import symbol (reportAttributeAccessIssue)
+   .../projects/core/homeassistant/components/systemmonitor/coordinator.py:12:77 - error: "sswap" is unknown import symbol (reportAttributeAccessIssue)
+   .../projects/core/homeassistant/components/systemmonitor/util.py:6:28 - error: "sfan" is unknown import symbol (reportAttributeAccessIssue)
+   .../projects/core/homeassistant/components/systemmonitor/util.py:6:34 - error: "shwtemp" is unknown import symbol (reportAttributeAccessIssue)
- 27223 errors, 282 warnings, 0 informations
+ 27235 errors, 282 warnings, 0 informations


... (truncated 311 lines) ...```

@erictraut
Copy link
Collaborator

Historically, I did this by hand because:

  1. It's important to stay on top of changes in key stubs like typing.pyi and builtins.pyi.
  2. We don't want to ship the tensorflow stubs from typeshed because they are very incomplete and are worse in many respects than having no stubs. So I always excluded that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants