Improved modeling of bound and unbound methods so they properly use `…#10586
Merged
Improved modeling of bound and unbound methods so they properly use `…#10586
Conversation
…types.MethodType` or `types.FunctionType`. This addresses #10514.
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: paasta (https://github.com/yelp/paasta)
- "FunctionType" is not assignable to "int"
+ "MethodType" is not assignable to "int"
- "FunctionType" is not assignable to "Handlers"
+ "MethodType" is not assignable to "Handlers"
- "FunctionType" is not assignable to "None" (reportArgumentType)
+ "MethodType" is not assignable to "None" (reportArgumentType)
comtypes (https://github.com/enthought/comtypes)
- .../projects/comtypes/comtypes/client/_events.py:222:37 - error: Cannot access attribute "__self__" for class "(...) -> Any" (reportFunctionMemberAccess)
+ .../projects/comtypes/comtypes/client/_events.py:222:37 - error: Cannot access attribute "__self__" for class "FunctionType"
+ Attribute "__self__" is unknown (reportFunctionMemberAccess)
ibis (https://github.com/ibis-project/ibis)
- "FunctionType" is incompatible with protocol "_GetItemIterable[_T@iter]"
+ "MethodType" is incompatible with protocol "_GetItemIterable[_T@iter]"
- "FunctionType" is incompatible with protocol "Sized"
+ "MethodType" is incompatible with protocol "Sized"
- .../projects/ibis/ibis/common/tests/test_grounds.py:1013:45 - error: Cannot access attribute "__func__" for class "FunctionType"
- Attribute "__func__" is unknown (reportFunctionMemberAccess)
- .../projects/ibis/ibis/common/tests/test_grounds.py:1013:78 - error: Cannot access attribute "__func__" for class "FunctionType"
- Attribute "__func__" is unknown (reportFunctionMemberAccess)
- 7226 errors, 240 warnings, 0 informations
+ 7224 errors, 240 warnings, 0 informations
sympy (https://github.com/sympy/sympy)
- "FunctionType" is incompatible with protocol "Iterable[_T_co@tuple]"
+ "MethodType" is incompatible with protocol "Iterable[_T_co@tuple]"
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:704:38 - error: Cannot access attribute "tendon_force_length" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:704:38 - error: Cannot access attribute "tendon_force_length" for class "MethodType"
- Attribute "tendon_force_length" is unknown (reportFunctionMemberAccess)
+ Attribute "tendon_force_length" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:705:42 - error: Cannot access attribute "fiber_force_length_passive" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:705:42 - error: Cannot access attribute "fiber_force_length_passive" for class "MethodType"
- Attribute "fiber_force_length_passive" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_length_passive" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:706:42 - error: Cannot access attribute "fiber_force_length_active" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:706:42 - error: Cannot access attribute "fiber_force_length_active" for class "MethodType"
- Attribute "fiber_force_length_active" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_length_active" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:707:38 - error: Cannot access attribute "fiber_force_velocity" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:707:38 - error: Cannot access attribute "fiber_force_velocity" for class "MethodType"
- Attribute "fiber_force_velocity" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_velocity" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:710:38 - error: Cannot access attribute "tendon_force_length" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:710:38 - error: Cannot access attribute "tendon_force_length" for class "MethodType"
- Attribute "tendon_force_length" is unknown (reportFunctionMemberAccess)
+ Attribute "tendon_force_length" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:712:42 - error: Cannot access attribute "fiber_force_length_passive" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:712:42 - error: Cannot access attribute "fiber_force_length_passive" for class "MethodType"
- Attribute "fiber_force_length_passive" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_length_passive" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:714:42 - error: Cannot access attribute "fiber_force_length_active" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:714:42 - error: Cannot access attribute "fiber_force_length_active" for class "MethodType"
- Attribute "fiber_force_length_active" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_length_active" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:716:38 - error: Cannot access attribute "fiber_force_velocity" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:716:38 - error: Cannot access attribute "fiber_force_velocity" for class "MethodType"
- Attribute "fiber_force_velocity" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_velocity" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:744:38 - error: Cannot access attribute "tendon_force_length" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:744:38 - error: Cannot access attribute "tendon_force_length" for class "MethodType"
- Attribute "tendon_force_length" is unknown (reportFunctionMemberAccess)
+ Attribute "tendon_force_length" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:745:42 - error: Cannot access attribute "fiber_force_length_passive" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:745:42 - error: Cannot access attribute "fiber_force_length_passive" for class "MethodType"
- Attribute "fiber_force_length_passive" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_length_passive" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:746:42 - error: Cannot access attribute "fiber_force_length_active" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:746:42 - error: Cannot access attribute "fiber_force_length_active" for class "MethodType"
- Attribute "fiber_force_length_active" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_length_active" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:749:38 - error: Cannot access attribute "tendon_force_length" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:749:38 - error: Cannot access attribute "tendon_force_length" for class "MethodType"
- Attribute "tendon_force_length" is unknown (reportFunctionMemberAccess)
+ Attribute "tendon_force_length" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:751:42 - error: Cannot access attribute "fiber_force_length_passive" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:751:42 - error: Cannot access attribute "fiber_force_length_passive" for class "MethodType"
- Attribute "fiber_force_length_passive" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_length_passive" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:753:42 - error: Cannot access attribute "fiber_force_length_active" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:753:42 - error: Cannot access attribute "fiber_force_length_active" for class "MethodType"
- Attribute "fiber_force_length_active" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_length_active" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:760:43 - error: Cannot access attribute "fiber_force_velocity_inverse" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:760:43 - error: Cannot access attribute "fiber_force_velocity_inverse" for class "MethodType"
- Attribute "fiber_force_velocity_inverse" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_velocity_inverse" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:763:43 - error: Cannot access attribute "fiber_force_velocity_inverse" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:763:43 - error: Cannot access attribute "fiber_force_velocity_inverse" for class "MethodType"
- Attribute "fiber_force_velocity_inverse" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_velocity_inverse" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:783:42 - error: Cannot access attribute "tendon_force_length_inverse" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:783:42 - error: Cannot access attribute "tendon_force_length_inverse" for class "MethodType"
- Attribute "tendon_force_length_inverse" is unknown (reportFunctionMemberAccess)
+ Attribute "tendon_force_length_inverse" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:786:42 - error: Cannot access attribute "tendon_force_length_inverse" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:786:42 - error: Cannot access attribute "tendon_force_length_inverse" for class "MethodType"
- Attribute "tendon_force_length_inverse" is unknown (reportFunctionMemberAccess)
+ Attribute "tendon_force_length_inverse" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:792:42 - error: Cannot access attribute "fiber_force_length_passive" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:792:42 - error: Cannot access attribute "fiber_force_length_passive" for class "MethodType"
- Attribute "fiber_force_length_passive" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_length_passive" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:793:42 - error: Cannot access attribute "fiber_force_length_active" for class "FunctionType"
+ .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:793:42 - error: Cannot access attribute "fiber_force_length_active" for class "MethodType"
- Attribute "fiber_force_length_active" is unknown (reportFunctionMemberAccess)
+ Attribute "fiber_force_length_active" is unknown (reportAttributeAccessIssue)
- .../projects/sympy/sympy/physics/biomechanics/musculotendon.py:796:42 - error: Cannot access attribute "fiber_force_length_passive" for class "FunctionType"
... (truncated 109 lines) ...
strawberry (https://github.com/strawberry-graphql/strawberry)
- "FunctionType" is not assignable to "type" (reportArgumentType)
+ "MethodType" is not assignable to "type" (reportArgumentType)
pyodide (https://github.com/pyodide/pyodide)
+ .../projects/pyodide/src/py/_pyodide/jsbind.py:235:28 - error: Cannot access attribute "__get__" for class "MethodType"
+ Attribute "__get__" is unknown (reportAttributeAccessIssue)
- 807 errors, 15 warnings, 0 informations
+ 808 errors, 15 warnings, 0 informations
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- .../projects/scikit-learn/sklearn/_loss/tests/test_loss.py:1041:35 - error: Cannot access attribute "inverse" for class "FunctionType"
+ .../projects/scikit-learn/sklearn/_loss/tests/test_loss.py:1041:35 - error: Cannot access attribute "inverse" for class "MethodType"
- Attribute "inverse" is unknown (reportFunctionMemberAccess)
+ Attribute "inverse" is unknown (reportAttributeAccessIssue)
- "FunctionType" is not assignable to "str" (reportArgumentType)
+ "MethodType" is not assignable to "str" (reportArgumentType)
- .../projects/scikit-learn/sklearn/semi_supervised/tests/test_label_propagation.py:139:27 - error: Cannot access attribute "astype" for class "FunctionType"
+ .../projects/scikit-learn/sklearn/semi_supervised/tests/test_label_propagation.py:139:27 - error: Cannot access attribute "astype" for class "MethodType"
- Attribute "astype" is unknown (reportFunctionMemberAccess)
+ Attribute "astype" is unknown (reportAttributeAccessIssue)
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is incompatible with protocol "CanArrayND[floating_co, Any]"
+ "MethodType" is incompatible with protocol "CanArrayND[floating_co, Any]"
- "FunctionType" is incompatible with protocol "SequenceND[floating_co | CanArrayND[floating_co, Any] | float | CanArray0D[floating_co]]"
+ "MethodType" is incompatible with protocol "SequenceND[floating_co | CanArrayND[floating_co, Any] | float | CanArray0D[floating_co]]"
yarl (https://github.com/aio-libs/yarl)
- .../projects/yarl/tests/test_url.py:477:30 - error: Cannot access attribute "replace" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:477:30 - error: Cannot access attribute "replace" for class "MethodType"
- Attribute "replace" is unknown (reportFunctionMemberAccess)
+ Attribute "replace" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:507:30 - error: Cannot access attribute "replace" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:507:30 - error: Cannot access attribute "replace" for class "MethodType"
- Attribute "replace" is unknown (reportFunctionMemberAccess)
+ Attribute "replace" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:851:23 - error: Cannot access attribute "raw_path" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:851:23 - error: Cannot access attribute "raw_path" for class "MethodType"
- Attribute "raw_path" is unknown (reportFunctionMemberAccess)
+ Attribute "raw_path" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:856:23 - error: Cannot access attribute "raw_parts" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:856:23 - error: Cannot access attribute "raw_parts" for class "MethodType"
- Attribute "raw_parts" is unknown (reportFunctionMemberAccess)
+ Attribute "raw_parts" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:861:23 - error: Cannot access attribute "parent" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:861:23 - error: Cannot access attribute "parent" for class "MethodType"
- Attribute "parent" is unknown (reportFunctionMemberAccess)
+ Attribute "parent" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:866:23 - error: Cannot access attribute "parent" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:866:23 - error: Cannot access attribute "parent" for class "MethodType"
- Attribute "parent" is unknown (reportFunctionMemberAccess)
+ Attribute "parent" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:871:23 - error: Cannot access attribute "parent" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:871:23 - error: Cannot access attribute "parent" for class "MethodType"
- Attribute "parent" is unknown (reportFunctionMemberAccess)
+ Attribute "parent" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:1971:36 - error: Cannot access attribute "_val" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:1971:36 - error: Cannot access attribute "_val" for class "MethodType"
- Attribute "_val" is unknown (reportFunctionMemberAccess)
+ Attribute "_val" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:1977:36 - error: Cannot access attribute "_val" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:1977:36 - error: Cannot access attribute "_val" for class "MethodType"
- Attribute "_val" is unknown (reportFunctionMemberAccess)
+ Attribute "_val" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:1988:36 - error: Cannot access attribute "_val" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:1988:36 - error: Cannot access attribute "_val" for class "MethodType"
- Attribute "_val" is unknown (reportFunctionMemberAccess)
+ Attribute "_val" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:1999:36 - error: Cannot access attribute "_val" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:1999:36 - error: Cannot access attribute "_val" for class "MethodType"
- Attribute "_val" is unknown (reportFunctionMemberAccess)
+ Attribute "_val" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:2348:27 - error: Cannot access attribute "get" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:2348:27 - error: Cannot access attribute "get" for class "MethodType"
- Attribute "get" is unknown (reportFunctionMemberAccess)
+ Attribute "get" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:2349:27 - error: Cannot access attribute "get" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:2349:27 - error: Cannot access attribute "get" for class "MethodType"
- Attribute "get" is unknown (reportFunctionMemberAccess)
+ Attribute "get" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:2351:22 - error: Cannot access attribute "get" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:2351:22 - error: Cannot access attribute "get" for class "MethodType"
- Attribute "get" is unknown (reportFunctionMemberAccess)
+ Attribute "get" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:2352:22 - error: Cannot access attribute "get" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:2352:22 - error: Cannot access attribute "get" for class "MethodType"
- Attribute "get" is unknown (reportFunctionMemberAccess)
+ Attribute "get" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:2359:27 - error: Cannot access attribute "get" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:2359:27 - error: Cannot access attribute "get" for class "MethodType"
- Attribute "get" is unknown (reportFunctionMemberAccess)
+ Attribute "get" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/tests/test_url.py:2361:22 - error: Cannot access attribute "get" for class "FunctionType"
+ .../projects/yarl/tests/test_url.py:2361:22 - error: Cannot access attribute "get" for class "MethodType"
- Attribute "get" is unknown (reportFunctionMemberAccess)
+ Attribute "get" is unknown (reportAttributeAccessIssue)
- "FunctionType" is incompatible with protocol "Sized"
+ "MethodType" is incompatible with protocol "Sized"
- "FunctionType" is incompatible with protocol "Iterable[Unknown]"
+ "MethodType" is incompatible with protocol "Iterable[Unknown]"
- "FunctionType" is not assignable to "bool" (reportReturnType)
+ "MethodType" is not assignable to "bool" (reportReturnType)
- "FunctionType" is not assignable to "URL" (reportReturnType)
+ "MethodType" is not assignable to "URL" (reportReturnType)
- "FunctionType" is not assignable to "None" (reportArgumentType)
+ "MethodType" is not assignable to "None" (reportArgumentType)
- "FunctionType" is not assignable to "None" (reportArgumentType)
+ "MethodType" is not assignable to "None" (reportArgumentType)
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is not assignable to "None" (reportReturnType)
+ "MethodType" is not assignable to "None" (reportReturnType)
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is not assignable to "None" (reportReturnType)
+ "MethodType" is not assignable to "None" (reportReturnType)
- .../projects/yarl/yarl/_url.py:805:23 - error: Cannot access attribute "rstrip" for class "FunctionType"
+ .../projects/yarl/yarl/_url.py:805:23 - error: Cannot access attribute "rstrip" for class "MethodType"
- Attribute "rstrip" is unknown (reportFunctionMemberAccess)
+ Attribute "rstrip" is unknown (reportAttributeAccessIssue)
- .../projects/yarl/yarl/_url.py:808:20 - error: Type "str | Any | (() -> (str | None))" is not assignable to return type "str | None"
+ .../projects/yarl/yarl/_url.py:808:20 - error: Type "str | Unknown | (() -> (str | None))" is not assignable to return type "str | None"
- Type "str | Any | (() -> (str | None))" is not assignable to type "str | None"
+ Type "str | Unknown | (() -> (str | None))" is not assignable to type "str | None"
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is not assignable to "None" (reportReturnType)
+ "MethodType" is not assignable to "None" (reportReturnType)
- .../projects/yarl/yarl/_url.py:808:34 - error: Operator "in" not supported for types "Literal[':']" and "Any | (() -> (str | None))"
+ .../projects/yarl/yarl/_url.py:808:34 - error: Operator "in" not supported for types "Literal[':']" and "Unknown | (() -> (str | None))"
- .../projects/yarl/yarl/_url.py:809:37 - error: Operator "in" not supported for types "Literal[':']" and "Any | (() -> (str | None))"
+ .../projects/yarl/yarl/_url.py:809:37 - error: Operator "in" not supported for types "Literal[':']" and "Unknown | (() -> (str | None))"
- "FunctionType" is not assignable to "int"
+ "MethodType" is not assignable to "int"
- "FunctionType" is not assignable to "None" (reportReturnType)
+ "MethodType" is not assignable to "None" (reportReturnType)
- "FunctionType" is incompatible with protocol "Iterable[tuple[str, _V@MultiDict]]"
+ "MethodType" is incompatible with protocol "Iterable[tuple[str, _V@MultiDict]]"
- "FunctionType" is incompatible with protocol "SupportsIKeys[_V@MultiDict]"
+ "MethodType" is incompatible with protocol "SupportsIKeys[_V@MultiDict]"
- "FunctionType" is incompatible with protocol "SupportsKeys[_V@MultiDict]"
+ "MethodType" is incompatible with protocol "SupportsKeys[_V@MultiDict]"
- "FunctionType" is not assignable to "str" (reportReturnType)
+ "MethodType" is not assignable to "str" (reportReturnType)
- "FunctionType" is not assignable to "None" (reportArgumentType)
+ "MethodType" is not assignable to "None" (reportArgumentType)
... (truncated 62 lines) ...
prefect (https://github.com/PrefectHQ/prefect)
- "FunctionType" is incompatible with protocol "Awaitable[(...) -> Unknown]"
+ "MethodType" is incompatible with protocol "Awaitable[(...) -> Unknown]"
- "FunctionType" is incompatible with protocol "Awaitable[(...) -> Unknown]"
+ "MethodType" is incompatible with protocol "Awaitable[(...) -> Unknown]"
- .../projects/prefect/src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py:1123:44 - error: Cannot access attribute "aio" for class "FunctionType"
+ .../projects/prefect/src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py:1123:44 - error: Cannot access attribute "aio" for class "MethodType"
- Attribute "aio" is unknown (reportFunctionMemberAccess)
+ Attribute "aio" is unknown (reportAttributeAccessIssue)
core (https://github.com/home-assistant/core)
- "FunctionType" is incompatible with protocol "Iterable[_S@from_iterable]"
+ "MethodType" is incompatible with protocol "Iterable[_S@from_iterable]"
- "FunctionType" is incompatible with protocol "SupportsDunderLT[Any]"
+ "MethodType" is incompatible with protocol "SupportsDunderLT[Any]"
- "FunctionType" is incompatible with protocol "SupportsDunderGT[Any]"
+ "MethodType" is incompatible with protocol "SupportsDunderGT[Any]"
- "FunctionType" is incompatible with protocol "SupportsDunderLT[Any]"
+ "MethodType" is incompatible with protocol "SupportsDunderLT[Any]"
- "FunctionType" is incompatible with protocol "SupportsDunderGT[Any]"
+ "MethodType" is incompatible with protocol "SupportsDunderGT[Any]"
- "FunctionType" is not assignable to "str" (reportArgumentType)
+ "MethodType" is not assignable to "str" (reportArgumentType)
- "FunctionType" is incompatible with protocol "Sized"
+ "MethodType" is incompatible with protocol "Sized"
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is not assignable to "None" (reportReturnType)
+ "MethodType" is not assignable to "None" (reportReturnType)
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is not assignable to "UndefinedType"
+ "MethodType" is not assignable to "UndefinedType"
- "FunctionType" is not assignable to "None" (reportArgumentType)
+ "MethodType" is not assignable to "None" (reportArgumentType)
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is not assignable to "UndefinedType"
+ "MethodType" is not assignable to "UndefinedType"
- "FunctionType" is not assignable to "None" (reportArgumentType)
+ "MethodType" is not assignable to "None" (reportArgumentType)
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is not assignable to "None" (reportArgumentType)
+ "MethodType" is not assignable to "None" (reportArgumentType)
- "FunctionType" is not assignable to "bool" (reportReturnType)
+ "MethodType" is not assignable to "bool" (reportReturnType)
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is not assignable to "bool" (reportArgumentType)
+ "MethodType" is not assignable to "bool" (reportArgumentType)
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is not assignable to "UndefinedType"
+ "MethodType" is not assignable to "UndefinedType"
- "FunctionType" is not assignable to "None" (reportArgumentType)
+ "MethodType" is not assignable to "None" (reportArgumentType)
- .../projects/core/homeassistant/components/amcrest/services.py:22:45 - error: Cannot access attribute "check_entity" for class "FunctionType"
+ .../projects/core/homeassistant/components/amcrest/services.py:22:45 - error: Cannot access attribute "check_entity" for class "MethodType"
- Attribute "check_entity" is unknown (reportFunctionMemberAccess)
+ Attribute "check_entity" is unknown (reportAttributeAccessIssue)
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is not assignable to "None" (reportArgumentType)
+ "MethodType" is not assignable to "None" (reportArgumentType)
- "FunctionType" is not assignable to "str" (reportGeneralTypeIssues)
+ "MethodType" is not assignable to "str" (reportGeneralTypeIssues)
- .../projects/core/homeassistant/components/api/__init__.py:221:44 - error: Cannot access attribute "check_entity" for class "FunctionType"
+ .../projects/core/homeassistant/components/api/__init__.py:221:44 - error: Cannot access attribute "check_entity" for class "MethodType"
- Attribute "check_entity" is unknown (reportFunctionMemberAccess)
+ Attribute "check_entity" is unknown (reportAttributeAccessIssue)
- .../projects/core/homeassistant/components/api/__init__.py:247:33 - error: Cannot access attribute "check_entity" for class "FunctionType"
+ .../projects/core/homeassistant/components/api/__init__.py:247:33 - error: Cannot access attribute "check_entity" for class "MethodType"
- Attribute "check_entity" is unknown (reportFunctionMemberAccess)
+ Attribute "check_entity" is unknown (reportAttributeAccessIssue)
- "FunctionType" is not assignable to "str" (reportArgumentType)
+ "MethodType" is not assignable to "str" (reportArgumentType)
- "FunctionType" is not assignable to "str" (reportArgumentType)
+ "MethodType" is not assignable to "str" (reportArgumentType)
- "FunctionType" is incompatible with protocol "Iterable[str]"
+ "MethodType" is incompatible with protocol "Iterable[str]"
- "FunctionType" is not assignable to "str" (reportArgumentType)
+ "MethodType" is not assignable to "str" (reportArgumentType)
- "FunctionType" is not assignable to "str"
+ "MethodType" is not assignable to "str"
- "FunctionType" is not assignable to "None" (reportAssignmentType)
+ "MethodType" is not assignable to "None" (reportAssignmentType)
... (truncated 683 lines) ...``` |
This file contains hidden or 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
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.
…types.MethodType
ortypes.FunctionType`. This addresses #10514.