-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Tweaked the algorithm for computing the complexity of a code flow gra… #9781
Merged
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
…ph to accommodate slightly larger graphs before giving up. This addresses #9778.
Diff from mypy_primer, showing the effect of this PR on open source code: sympy (https://github.com/sympy/sympy)
+ /tmp/mypy_primer/projects/sympy/sympy/algebras/tests/test_quaternion.py:384:23 - error: Cannot access attribute "to_euler" for class "Basic"
+ Attribute "to_euler" is unknown (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/algebras/tests/test_quaternion.py:384:23 - error: Cannot access attribute "to_euler" for class "atan2"
+ Attribute "to_euler" is unknown (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/algebras/tests/test_quaternion.py:391:18 - error: Cannot access attribute "to_euler" for class "Basic"
+ Attribute "to_euler" is unknown (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/sympy/sympy/algebras/tests/test_quaternion.py:391:18 - error: Cannot access attribute "to_euler" for class "atan2"
+ Attribute "to_euler" is unknown (reportAttributeAccessIssue)
- /tmp/mypy_primer/projects/sympy/sympy/assumptions/refine.py:396:61 - error: Type "dict[str, ((expr: Unknown, assumptions: Unknown) -> (Unknown | Expr | None)) | ((expr: Unknown, assumptions: Unknown) -> Unknown) | ((expr: Unknown, assumptions: Unknown) -> (Expr | Unknown | NaN)) | ((expr: Unknown, assumptions: Unknown) -> (Unknown | Zero | Basic | None)) | ((expr: Unknown, assumptions: Unknown) -> (Zero | Unknown | None)) | ((expr: Unknown, assumptions: Unknown) -> (Zero | One | NegativeOne | Unknown)) | ((expr: Unknown, assumptions: Unknown) -> (Unknown | MatrixElement | None))]" is not assignable to declared type "dict[str, (Expr, Boolean) -> Expr]"
+ /tmp/mypy_primer/projects/sympy/sympy/assumptions/refine.py:396:61 - error: Type "dict[str, ((expr: Unknown, assumptions: Unknown) -> (Unknown | Expr | None)) | ((expr: Unknown, assumptions: Unknown) -> (Expr | Unknown | NaN)) | ((expr: Unknown, assumptions: Unknown) -> (Unknown | Zero | Basic | None)) | ((expr: Unknown, assumptions: Unknown) -> (Zero | Unknown | None)) | ((expr: Unknown, assumptions: Unknown) -> (Zero | One | NegativeOne | Unknown)) | ((expr: Unknown, assumptions: Unknown) -> (Unknown | MatrixElement | None))]" is not assignable to declared type "dict[str, (Expr, Boolean) -> Expr]"
- Type "(expr: Unknown, assumptions: Unknown) -> (Unknown | Zero | Basic | None)" is not assignable to type "(Expr, Boolean) -> Expr"
+ Type "(expr: Unknown, assumptions: Unknown) -> (Unknown | Expr | None)" is not assignable to type "(Expr, Boolean) -> Expr"
- Function return type "Unknown | Zero | Basic | None" is incompatible with type "Expr"
+ Function return type "Unknown | Expr | None" is incompatible with type "Expr"
- Type "Unknown | Zero | Basic | None" is not assignable to type "Expr"
+ Type "Unknown | Expr | None" is not assignable to type "Expr"
- "Basic" is not assignable to "Expr" (reportAssignmentType)
+ "None" is not assignable to "Expr" (reportAssignmentType)
- /tmp/mypy_primer/projects/sympy/sympy/codegen/ast.py:872:7 - error: Base classes for class "String" define method "sort_key" in incompatible way
- Return type mismatch: base method returns type "tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One]", override returns type "tuple[tuple[Literal[2], Literal[0], str], tuple[int, tuple[str]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One]"
- "tuple[tuple[Literal[2], Literal[0], str], tuple[int, tuple[str]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One]" is not assignable to "tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One]"
- Tuple entry 2 is incorrect type
- "tuple[int, tuple[str]]" is not assignable to "tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]]"
- Tuple entry 2 is incorrect type (reportIncompatibleMethodOverride)
- Return type mismatch: base method returns type "tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One]", override returns type "tuple[tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown | tuple[tuple[int, int, str | Unknown], tuple[int, tuple[tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown | tuple[tuple[Unknown | int, int, str | Unknown], tuple[int, tuple[Unknown, ...]] | tuple[int, tuple[str]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]] | tuple[int, tuple[str]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]"
+ Return type mismatch: base method returns type "tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown, ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One]", override returns type "tuple[tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown, ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown | tuple[tuple[int, int, str | Unknown], tuple[int, tuple[tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown, ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown | tuple[tuple[Unknown | int, int, str | Unknown], tuple[int, tuple[Unknown, ...]] | tuple[int, tuple[str]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]] | tuple[int, tuple[str]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]"
- "tuple[tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown | tuple[tuple[int, int, str | Unknown], tuple[int, tuple[tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown | tuple[tuple[Unknown | int, int, str | Unknown], tuple[int, tuple[Unknown, ...]] | tuple[int, tuple[str]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]] | tuple[int, tuple[str]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]" is not assignable to "tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One]"
+ "tuple[tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown, ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown | tuple[tuple[int, int, str | Unknown], tuple[int, tuple[tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown, ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown | tuple[tuple[Unknown | int, int, str | Unknown], tuple[int, tuple[Unknown, ...]] | tuple[int, tuple[str]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]] | tuple[int, tuple[str]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One], ...]" is not assignable to "tuple[tuple[int, int, str], tuple[int, tuple[tuple[tuple[int, int, str], Unknown, tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One] | Unknown, ...]], tuple[tuple[Literal[1], Literal[0], Literal['Number']], tuple[int, tuple[()]], tuple[()], One], One]"
... (truncated 1036 lines) ...
scikit-learn (https://github.com/scikit-learn/scikit-learn)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/_hdbscan/tests/test_reachibility.py:61:14 - error: Cannot access attribute "dtype" for class "list[Unknown]"
+ Attribute "dtype" is unknown (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/_hdbscan/tests/test_reachibility.py:61:14 - error: Cannot access attribute "dtype" for class "tuple[Unknown, ...]"
+ Attribute "dtype" is unknown (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/_hdbscan/tests/test_reachibility.py:61:14 - error: Cannot access attribute "dtype" for class "slice[int | Any, int | Any, int | Any]"
+ Attribute "dtype" is unknown (reportAttributeAccessIssue)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/_hdbscan/tests/test_reachibility.py:61:14 - error: "dtype" is not a known attribute of "None" (reportOptionalMemberAccess)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:88:9 - error: Expression with type "tuple[Unknown, Literal[1], Unknown, None, Unknown] | tuple[Unknown, Literal[1], Unknown, None] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown | Any | None]" cannot be assigned to target tuple
+ Type "tuple[Unknown, Literal[1], Unknown, None, Unknown]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5
+ Type "tuple[Unknown, Unknown, Unknown, Unknown, Unknown]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5
+ Type "tuple[Unknown, Unknown, Unknown, Unknown, Unknown | Any | None]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5 (reportAssignmentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:119:21 - error: Expression with type "tuple[Unknown, Literal[1], Unknown, None, Unknown] | tuple[Unknown, Literal[1], Unknown, None] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown | Any | None]" cannot be assigned to target tuple
+ Type "tuple[Unknown, Literal[1], Unknown, None, Unknown]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5
+ Type "tuple[Unknown, Unknown, Unknown, Unknown, Unknown]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5
+ Type "tuple[Unknown, Unknown, Unknown, Unknown, Unknown | Any | None]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5 (reportAssignmentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:133:9 - error: Expression with type "tuple[Unknown, Literal[1], Unknown, None, Unknown] | tuple[Unknown, Literal[1], Unknown, None] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown | Any | None]" cannot be assigned to target tuple
+ Type "tuple[Unknown, Literal[1], Unknown, None, Unknown]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5
+ Type "tuple[Unknown, Unknown, Unknown, Unknown, Unknown]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5
+ Type "tuple[Unknown, Unknown, Unknown, Unknown, Unknown | Any | None]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5 (reportAssignmentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:352:13 - error: Expression with type "tuple[Unknown, Literal[1], Unknown, None, Unknown] | tuple[Unknown, Literal[1], Unknown, None] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown | Any | None]" cannot be assigned to target tuple
+ Type "tuple[Unknown, Literal[1], Unknown, None, Unknown]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5
+ Type "tuple[Unknown, Unknown, Unknown, Unknown, Unknown]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5
+ Type "tuple[Unknown, Unknown, Unknown, Unknown, Unknown | Any | None]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5 (reportAssignmentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:385:5 - error: Expression with type "tuple[Unknown, Literal[1], Unknown, None, Unknown] | tuple[Unknown, Literal[1], Unknown, None] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown | Any | None]" cannot be assigned to target tuple
+ Type "tuple[Unknown, Literal[1], Unknown, None, Unknown]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5
+ Type "tuple[Unknown, Unknown, Unknown, Unknown, Unknown]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5
+ Type "tuple[Unknown, Unknown, Unknown, Unknown, Unknown | Any | None]" is incompatible with target tuple
+ Tuple size mismatch; expected 4 but received 5 (reportAssignmentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:527:31 - error: Object of type "None" is not subscriptable (reportOptionalSubscript)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:528:33 - error: Object of type "None" is not subscriptable (reportOptionalSubscript)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:529:35 - error: Object of type "None" is not subscriptable (reportOptionalSubscript)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:530:37 - error: Object of type "None" is not subscriptable (reportOptionalSubscript)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:604:50 - error: Index 4 is out of range for type tuple[Unknown, Literal[1], Unknown, None] (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:604:50 - error: Index 4 is out of range for type tuple[Unknown, Unknown, Unknown, Unknown] (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:605:50 - error: Index 4 is out of range for type tuple[Unknown, Literal[1], Unknown, None] (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:605:50 - error: Index 4 is out of range for type tuple[Unknown, Unknown, Unknown, Unknown] (reportGeneralTypeIssues)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:751:9 - error: Expression with type "tuple[Unknown, Literal[1], Unknown, None, Unknown] | tuple[Unknown, Literal[1], Unknown, None] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown | Any | None]" cannot be assigned to target tuple
+ Type "tuple[Unknown, Literal[1], Unknown, None]" is incompatible with target tuple
+ Tuple size mismatch; expected 5 but received 4
+ Type "tuple[Unknown, Unknown, Unknown, Unknown]" is incompatible with target tuple
+ Tuple size mismatch; expected 5 but received 4 (reportAssignmentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/cluster/tests/test_hierarchical.py:755:30 - error: Operator ">=" not supported for "None" (reportOptionalOperand)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/compose/tests/test_column_transformer.py:262:45 - error: No overloads for "__getitem__" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/compose/tests/test_column_transformer.py:262:45 - error: Argument of type "Literal['first']" cannot be assigned to parameter "s" of type "slice[Any, Any, Any]" in function "__getitem__"
+ "Literal['first']" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/compose/tests/test_column_transformer.py:262:45 - error: Argument of type "Literal['first']" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+ "Literal['first']" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/compose/tests/test_column_transformer.py:262:45 - error: "__getitem__" method not defined on type "slice[int | Any, int | Any, int | Any]" (reportIndexIssue)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/compose/tests/test_column_transformer.py:262:45 - error: Object of type "None" is not subscriptable (reportOptionalSubscript)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/compose/tests/test_column_transformer.py:263:45 - error: No overloads for "__getitem__" match the provided arguments (reportCallIssue)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/compose/tests/test_column_transformer.py:263:45 - error: Argument of type "Literal['second']" cannot be assigned to parameter "s" of type "slice[Any, Any, Any]" in function "__getitem__"
+ "Literal['second']" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
+ /tmp/mypy_primer/projects/scikit-learn/sklearn/compose/tests/test_column_transformer.py:263:45 - error: Argument of type "Literal['second']" cannot be assigned to parameter "key" of type "slice[Any, Any, Any]" in function "__getitem__"
+ "Literal['second']" is not assignable to "slice[Any, Any, Any]" (reportArgumentType)
... (truncated 252 lines) ...
prefect (https://github.com/PrefectHQ/prefect): 2.32x slower (60.0s -> 139.2s in a single noisy sample)
- /tmp/mypy_primer/projects/prefect/src/integrations/prefect-github/prefect_github/schemas/graphql_schema.py: error: Code is too complex to analyze; reduce complexity by refactoring into subroutines or reducing conditional code paths (reportGeneralTypeIssues)
- 5550 errors, 276 warnings, 0 informations
+ 5549 errors, 276 warnings, 0 informations
streamlit (https://github.com/streamlit/streamlit)
- /tmp/mypy_primer/projects/streamlit/lib/streamlit/vendor/pympler/asizeof.py:441:20 - error: Operator ">" not supported for types "Any | object | Unknown" and "int"
+ /tmp/mypy_primer/projects/streamlit/lib/streamlit/vendor/pympler/asizeof.py:441:20 - error: Operator ">" not supported for types "Any | Unknown | int | object | _Typedef" and "int"
+ Operator ">" not supported for types "object" and "int"
- Operator ">" not supported for types "object" and "int" (reportOperatorIssue)
+ Operator ">" not supported for types "_Typedef" and "int" (reportOperatorIssue)
+ /tmp/mypy_primer/projects/streamlit/lib/streamlit/vendor/pympler/asizeof.py:2796:25 - error: Operator "//" not supported for types "object | int" and "Any | int | Unknown"
+ Operator "//" not supported for types "object" and "int" (reportOperatorIssue)
- 3702 errors, 122 warnings, 0 informations
+ 3703 errors, 122 warnings, 0 informations
xarray (https://github.com/pydata/xarray)
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:666:30 - error: No overloads for "broadcast" match the provided arguments (reportCallIssue)
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:666:43 - error: Argument of type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" cannot be assigned to parameter "args" of type "T_Alignable@broadcast" in function "broadcast"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "Alignable"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "Alignable"
- "Variable" is incompatible with protocol "Alignable"
- "xindexes" is not present
- "_reindex_callback" is not present
- "_overwrite_indexes" is not present
- "Alignable" is not assignable to "Variable"
- "Alignable" is not assignable to "Variable" (reportArgumentType)
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:666:59 - error: Argument of type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" cannot be assigned to parameter "args" of type "T_Alignable@broadcast" in function "broadcast"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "Alignable"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "Alignable"
- "Variable" is incompatible with protocol "Alignable"
- "xindexes" is not present
- "_reindex_callback" is not present
- "_overwrite_indexes" is not present
- "Alignable" is not assignable to "Variable"
- "Alignable" is not assignable to "Variable" (reportArgumentType)
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:702:30 - error: No overloads for "broadcast" match the provided arguments (reportCallIssue)
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:702:43 - error: Argument of type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" cannot be assigned to parameter "args" of type "T_Alignable@broadcast" in function "broadcast"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "Alignable"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "Alignable"
- "Variable" is incompatible with protocol "Alignable"
- "xindexes" is not present
- "_reindex_callback" is not present
- "_overwrite_indexes" is not present
- "Alignable" is not assignable to "Variable"
- "Alignable" is not assignable to "Variable" (reportArgumentType)
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:702:60 - error: Argument of type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" cannot be assigned to parameter "args" of type "T_Alignable@broadcast" in function "broadcast"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "Alignable"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "Alignable"
- "Variable" is incompatible with protocol "Alignable"
- "xindexes" is not present
- "_reindex_callback" is not present
- "_overwrite_indexes" is not present
- "Alignable" is not assignable to "Variable"
- "Alignable" is not assignable to "Variable" (reportArgumentType)
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:781:13 - error: Argument of type "list[list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown]" cannot be assigned to parameter "data_objects" of type "Iterable[Dataset | DataArray]" in function "combine_by_coords"
+ /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:781:31 - error: Argument of type "list[Dataset | DataArray | list[Unknown] | tuple[Unknown, ...] | Variable | Unknown]" cannot be assigned to parameter "data_objects" of type "Iterable[Dataset | DataArray]" in function "combine_by_coords"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "Dataset | DataArray"
- Type "Variable" is not assignable to type "Dataset | DataArray"
- "Variable" is not assignable to "Dataset"
- "Variable" is not assignable to "DataArray"
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:955:13 - error: Argument of type "list[list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown]" cannot be assigned to parameter "objs" of type "Iterable[T_DataArray@concat]" in function "concat"
+ /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:955:13 - error: Argument of type "list[Dataset | DataArray | list[Unknown] | tuple[Unknown, ...] | Variable | Unknown]" cannot be assigned to parameter "objs" of type "Iterable[T_DataArray@concat]" in function "concat"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "DataArray"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "DataArray"
+ Type "Dataset | DataArray" is not assignable to type "DataArray"
+ Type "Dataset | DataArray" is not assignable to type "DataArray"
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:1022:19 - error: Argument of type "list[list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown]" cannot be assigned to parameter "objs" of type "Iterable[T_DataArray@concat]" in function "concat"
+ /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:1022:19 - error: Argument of type "list[Dataset | DataArray | list[Unknown] | tuple[Unknown, ...] | Variable | Unknown]" cannot be assigned to parameter "objs" of type "Iterable[T_DataArray@concat]" in function "concat"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "DataArray"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "DataArray"
+ Type "Dataset | DataArray" is not assignable to type "DataArray"
+ Type "Dataset | DataArray" is not assignable to type "DataArray"
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:1341:9 - error: No overloads for "full_like" match the provided arguments (reportCallIssue)
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:1341:22 - error: Argument of type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" cannot be assigned to parameter "other" of type "Dataset | DataArray | Variable" in function "full_like"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "Dataset | DataArray | Variable"
- Type "list[Unknown]" is not assignable to type "Dataset | DataArray | Variable"
- "list[Unknown]" is not assignable to "Dataset"
- "list[Unknown]" is not assignable to "DataArray"
- "list[Unknown]" is not assignable to "Variable" (reportArgumentType)
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:1391:9 - error: No overloads for "full_like" match the provided arguments (reportCallIssue)
- /tmp/mypy_primer/projects/xarray/xarray/tests/test_units.py:1391:22 - error: Argument of type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" cannot be assigned to parameter "other" of type "Dataset | DataArray | Variable" in function "full_like"
- Type "list[Unknown] | tuple[Unknown, ...] | Dataset | DataArray | Variable | Unknown" is not assignable to type "Dataset | DataArray | Variable"
- Type "list[Unknown]" is not assignable to type "Dataset | DataArray | Variable"
- "list[Unknown]" is not assignable to "Dataset"
- "list[Unknown]" is not assignable to "DataArray"
- "list[Unknown]" is not assignable to "Variable" (reportArgumentType)
... (truncated 175 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.
…ph to accommodate slightly larger graphs before giving up. This addresses #9778.