-
Notifications
You must be signed in to change notification settings - Fork 244
fix: Inferred return type of Never when a method body contains a for loop #2079
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
Conversation
|
Diff from mypy_primer, showing the effect of this PR on open source code: dedupe (https://github.com/dedupeio/dedupe)
- ERROR dedupe/api.py:199:9-24: Overload return type `Iterable[tuple[tuple[int, ...], ndarray[tuple[Any, ...], dtype[float64]] | tuple[float, ...]]]` is not assignable to implementation return type `Generator[tuple[tuple[Unknown], tuple[float]] | tuple[Unknown, Unknown], Unknown, Never]` [inconsistent-overload]
+ ERROR dedupe/api.py:199:9-24: Overload return type `Iterable[tuple[tuple[int, ...], ndarray[tuple[Any, ...], dtype[float64]] | tuple[float, ...]]]` is not assignable to implementation return type `Generator[tuple[tuple[Unknown], tuple[float]] | tuple[Unknown, Unknown], Unknown, None]` [inconsistent-overload]
- ERROR dedupe/api.py:205:9-24: Overload return type `Iterable[tuple[tuple[str, ...], ndarray[tuple[Any, ...], dtype[float64]] | tuple[float, ...]]]` is not assignable to implementation return type `Generator[tuple[tuple[Unknown], tuple[float]] | tuple[Unknown, Unknown], Unknown, Never]` [inconsistent-overload]
+ ERROR dedupe/api.py:205:9-24: Overload return type `Iterable[tuple[tuple[str, ...], ndarray[tuple[Any, ...], dtype[float64]] | tuple[float, ...]]]` is not assignable to implementation return type `Generator[tuple[tuple[Unknown], tuple[float]] | tuple[Unknown, Unknown], Unknown, None]` [inconsistent-overload]
- ERROR dedupe/api.py:742:9-16: Overload return type `None` is not assignable to implementation return type `Never` [inconsistent-overload]
- ERROR dedupe/api.py:746:9-16: Overload return type `None` is not assignable to implementation return type `Never` [inconsistent-overload]
- ERROR dedupe/api.py:998:9-31: Overload return type `Iterable[tuple[int, tuple[tuple[int, float], ...]]]` is not assignable to implementation return type `Generator[tuple[Unknown, tuple[tuple[RecordID, float], ...]] | tuple[Unknown, tuple[()]], Unknown, Never]` [inconsistent-overload]
+ ERROR dedupe/api.py:998:9-31: Overload return type `Iterable[tuple[int, tuple[tuple[int, float], ...]]]` is not assignable to implementation return type `Generator[tuple[Unknown, tuple[tuple[RecordID, float], ...]] | tuple[Unknown, tuple[()]], Unknown, None]` [inconsistent-overload]
- ERROR dedupe/api.py:1003:9-31: Overload return type `Iterable[tuple[str, tuple[tuple[str, float], ...]]]` is not assignable to implementation return type `Generator[tuple[Unknown, tuple[tuple[RecordID, float], ...]] | tuple[Unknown, tuple[()]], Unknown, Never]` [inconsistent-overload]
+ ERROR dedupe/api.py:1003:9-31: Overload return type `Iterable[tuple[str, tuple[tuple[str, float], ...]]]` is not assignable to implementation return type `Generator[tuple[Unknown, tuple[tuple[RecordID, float], ...]] | tuple[Unknown, tuple[()]], Unknown, None]` [inconsistent-overload]
- ::error file=dedupe/api.py,line=199,col=9,endLine=199,endColumn=24,title=Pyrefly inconsistent-overload::Overload return type `Iterable[tuple[tuple[int, ...], ndarray[tuple[Any, ...], dtype[float64]] | tuple[float, ...]]]` is not assignable to implementation return type `Generator[tuple[tuple[Unknown], tuple[float]] | tuple[Unknown, Unknown], Unknown, Never]`%0A Protocol `Generator` requires attribute `__next__`
+ ::error file=dedupe/api.py,line=199,col=9,endLine=199,endColumn=24,title=Pyrefly inconsistent-overload::Overload return type `Iterable[tuple[tuple[int, ...], ndarray[tuple[Any, ...], dtype[float64]] | tuple[float, ...]]]` is not assignable to implementation return type `Generator[tuple[tuple[Unknown], tuple[float]] | tuple[Unknown, Unknown], Unknown, None]`%0A Protocol `Generator` requires attribute `__next__`
- ::error file=dedupe/api.py,line=205,col=9,endLine=205,endColumn=24,title=Pyrefly inconsistent-overload::Overload return type `Iterable[tuple[tuple[str, ...], ndarray[tuple[Any, ...], dtype[float64]] | tuple[float, ...]]]` is not assignable to implementation return type `Generator[tuple[tuple[Unknown], tuple[float]] | tuple[Unknown, Unknown], Unknown, Never]`%0A Protocol `Generator` requires attribute `__next__`
+ ::error file=dedupe/api.py,line=205,col=9,endLine=205,endColumn=24,title=Pyrefly inconsistent-overload::Overload return type `Iterable[tuple[tuple[str, ...], ndarray[tuple[Any, ...], dtype[float64]] | tuple[float, ...]]]` is not assignable to implementation return type `Generator[tuple[tuple[Unknown], tuple[float]] | tuple[Unknown, Unknown], Unknown, None]`%0A Protocol `Generator` requires attribute `__next__`
- ::error file=dedupe/api.py,line=742,col=9,endLine=742,endColumn=16,title=Pyrefly inconsistent-overload::Overload return type `None` is not assignable to implementation return type `Never`
- ::error file=dedupe/api.py,line=746,col=9,endLine=746,endColumn=16,title=Pyrefly inconsistent-overload::Overload return type `None` is not assignable to implementation return type `Never`
- ::error file=dedupe/api.py,line=998,col=9,endLine=998,endColumn=31,title=Pyrefly inconsistent-overload::Overload return type `Iterable[tuple[int, tuple[tuple[int, float], ...]]]` is not assignable to implementation return type `Generator[tuple[Unknown, tuple[tuple[RecordID, float], ...]] | tuple[Unknown, tuple[()]], Unknown, Never]`%0A Protocol `Generator` requires attribute `__next__`
+ ::error file=dedupe/api.py,line=998,col=9,endLine=998,endColumn=31,title=Pyrefly inconsistent-overload::Overload return type `Iterable[tuple[int, tuple[tuple[int, float], ...]]]` is not assignable to implementation return type `Generator[tuple[Unknown, tuple[tuple[RecordID, float], ...]] | tuple[Unknown, tuple[()]], Unknown, None]`%0A Protocol `Generator` requires attribute `__next__`
- ::error file=dedupe/api.py,line=1003,col=9,endLine=1003,endColumn=31,title=Pyrefly inconsistent-overload::Overload return type `Iterable[tuple[str, tuple[tuple[str, float], ...]]]` is not assignable to implementation return type `Generator[tuple[Unknown, tuple[tuple[RecordID, float], ...]] | tuple[Unknown, tuple[()]], Unknown, Never]`%0A Protocol `Generator` requires attribute `__next__`
+ ::error file=dedupe/api.py,line=1003,col=9,endLine=1003,endColumn=31,title=Pyrefly inconsistent-overload::Overload return type `Iterable[tuple[str, tuple[tuple[str, float], ...]]]` is not assignable to implementation return type `Generator[tuple[Unknown, tuple[tuple[RecordID, float], ...]] | tuple[Unknown, tuple[()]], Unknown, None]`%0A Protocol `Generator` requires attribute `__next__`
prefect (https://github.com/PrefectHQ/prefect)
+ ERROR src/prefect/states.py:98:7-8: Function declared to return `R`, but one or more paths are missing an explicit `return` [bad-return]
+ ERROR src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:874:25-78: `None` is not subscriptable [unsupported-operation]
- ERROR src/integrations/prefect-gcp/tests/test_credentials.py:25:30-55: Argument `str` is not assignable to parameter `object` with type `Path` in function `list.append` [bad-argument-type]
+ ERROR src/integrations/prefect-gcp/tests/test_credentials.py:25:30-55: Argument `str | None` is not assignable to parameter `object` with type `Path` in function `list.append` [bad-argument-type]
- ERROR src/integrations/prefect-gcp/tests/test_credentials.py:26:30-75: Argument `str` is not assignable to parameter `object` with type `Path` in function `list.append` [bad-argument-type]
+ ERROR src/integrations/prefect-gcp/tests/test_credentials.py:26:48-75: No matching overload found for function `posixpath.expanduser` called with arguments: (str | None) [no-matching-overload]
+ ::error file=src/prefect/states.py,line=98,col=7,endLine=98,endColumn=8,title=Pyrefly bad-return::Function declared to return `R`, but one or more paths are missing an explicit `return`
+ ::error file=src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py,line=874,col=25,endLine=874,endColumn=78,title=Pyrefly unsupported-operation::`None` is not subscriptable
- ::error file=src/integrations/prefect-gcp/tests/test_credentials.py,line=25,col=30,endLine=25,endColumn=55,title=Pyrefly bad-argument-type::Argument `str` is not assignable to parameter `object` with type `Path` in function `list.append`
+ ::error file=src/integrations/prefect-gcp/tests/test_credentials.py,line=25,col=30,endLine=25,endColumn=55,title=Pyrefly bad-argument-type::Argument `str | None` is not assignable to parameter `object` with type `Path` in function `list.append`
- ::error file=src/integrations/prefect-gcp/tests/test_credentials.py,line=26,col=30,endLine=26,endColumn=75,title=Pyrefly bad-argument-type::Argument `str` is not assignable to parameter `object` with type `Path` in function `list.append`
+ ::error file=src/integrations/prefect-gcp/tests/test_credentials.py,line=26,col=48,endLine=26,endColumn=75,title=Pyrefly no-matching-overload::No matching overload found for function `posixpath.expanduser` called with arguments: (str | None)%0A Possible overloads:%0A (path: PathLike[AnyStr]) -> AnyStr [closest match]%0A (path: AnyStr) -> AnyStr
parso (https://github.com/davidhalter/parso)
+ ERROR parso/python/diff.py:621:16-30: Object of class `NoneType` has no attribute `tree_node` [missing-attribute]
+ ERROR parso/python/diff.py:622:9-28: Object of class `NoneType` has no attribute `add_tree_nodes` [missing-attribute]
+ ::error file=parso/python/diff.py,line=621,col=16,endLine=621,endColumn=30,title=Pyrefly missing-attribute::Object of class `NoneType` has no attribute `tree_node`
+ ::error file=parso/python/diff.py,line=622,col=9,endLine=622,endColumn=28,title=Pyrefly missing-attribute::Object of class `NoneType` has no attribute `add_tree_nodes`
- ::error file=parso/python/errors.py,line=714,col=9,endLine=714,endColumn=17,title=Pyrefly bad-override::Class member `_BytesAndStringMix.is_issue` overrides parent class `SyntaxRule` in an inconsistent manner%0A `_BytesAndStringMix.is_issue` has type `BoundMethod[_BytesAndStringMix, (self: _BytesAndStringMix, node: Unknown) -> Literal[True]]`, which is not assignable to `BoundMethod[_BytesAndStringMix, (self: _BytesAndStringMix, node: Unknown) -> Never]`, the type of `SyntaxRule.is_issue`
+ ::error file=parso/python/errors.py,line=714,col=9,endLine=714,endColumn=17,title=Pyrefly bad-override::Class member `_BytesAndStringMix.is_issue` overrides parent class `SyntaxRule` in an inconsistent manner%0A `_BytesAndStringMix.is_issue` has type `BoundMethod[_BytesAndStringMix, (self: _BytesAndStringMix, node: Unknown) -> Literal[True] | None]`, which is not assignable to `BoundMethod[_BytesAndStringMix, (self: _BytesAndStringMix, node: Unknown) -> Never]`, the type of `SyntaxRule.is_issue`
- ::error file=parso/python/errors.py,line=913,col=9,endLine=913,endColumn=17,title=Pyrefly bad-override::Class member `_ArglistRule.is_issue` overrides parent class `SyntaxRule` in an inconsistent manner%0A `_ArglistRule.is_issue` has type `BoundMethod[_ArglistRule, (self: _ArglistRule, node: Unknown) -> Literal[True]]`, which is not assignable to `BoundMethod[_ArglistRule, (self: _ArglistRule, node: Unknown) -> Never]`, the type of `SyntaxRule.is_issue`
+ ::error file=parso/python/errors.py,line=913,col=9,endLine=913,endColumn=17,title=Pyrefly bad-override::Class member `_ArglistRule.is_issue` overrides parent class `SyntaxRule` in an inconsistent manner%0A `_ArglistRule.is_issue` has type `BoundMethod[_ArglistRule, (self: _ArglistRule, node: Unknown) -> Literal[True] | None]`, which is not assignable to `BoundMethod[_ArglistRule, (self: _ArglistRule, node: Unknown) -> Never]`, the type of `SyntaxRule.is_issue`
- ::error file=parso/python/errors.py,line=964,col=9,endLine=964,endColumn=17,title=Pyrefly bad-override::Class member `_ParameterRule.is_issue` overrides parent class `SyntaxRule` in an inconsistent manner%0A `_ParameterRule.is_issue` has type `BoundMethod[_ParameterRule, (self: _ParameterRule, node: Unknown) -> Literal[True]]`, which is not assignable to `BoundMethod[_ParameterRule, (self: _ParameterRule, node: Unknown) -> Never]`, the type of `SyntaxRule.is_issue`
+ ::error file=parso/python/errors.py,line=964,col=9,endLine=964,endColumn=17,title=Pyrefly bad-override::Class member `_ParameterRule.is_issue` overrides parent class `SyntaxRule` in an inconsistent manner%0A `_ParameterRule.is_issue` has type `BoundMethod[_ParameterRule, (self: _ParameterRule, node: Unknown) -> Literal[True] | None]`, which is not assignable to `BoundMethod[_ParameterRule, (self: _ParameterRule, node: Unknown) -> Never]`, the type of `SyntaxRule.is_issue`
sockeye (https://github.com/awslabs/sockeye)
+ ERROR sockeye/decoder.py:177:9-27: Class member `TransformerDecoder.set_inference_only` overrides parent class `Decoder` in an inconsistent manner [bad-override]
+ ::error file=sockeye/decoder.py,line=177,col=9,endLine=177,endColumn=27,title=Pyrefly bad-override::Class member `TransformerDecoder.set_inference_only` overrides parent class `Decoder` in an inconsistent manner%0A `TransformerDecoder.set_inference_only` has type `BoundMethod[TransformerDecoder, (self: TransformerDecoder, inference_only: bool) -> None]`, which is not assignable to `BoundMethod[TransformerDecoder, (self: TransformerDecoder, inference_only: bool) -> Never]`, the type of `Decoder.set_inference_only`
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- ERROR sklearn/calibration.py:438:44-452:14: `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to attribute `calibrated_classifiers_` with type `list[Unknown]` [bad-assignment]
+ ERROR sklearn/calibration.py:438:44-452:14: `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to attribute `calibrated_classifiers_` with type `list[Unknown]` [bad-assignment]
- ERROR sklearn/cluster/_mean_shift.py:512:16-26: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/cluster/_mean_shift.py:513:39-49: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/cluster/_mean_shift.py:513:56-66: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/ensemble/_bagging.py:1099:20-31: No matching overload found for function `sum` called with arguments: (Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
+ ERROR sklearn/ensemble/_bagging.py:1099:20-31: No matching overload found for function `sum` called with arguments: (Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
- ERROR sklearn/ensemble/_bagging.py:1171:25-41: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/ensemble/_bagging.py:1173:35-48: Argument `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR sklearn/ensemble/_bagging.py:1173:35-48: Argument `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR sklearn/ensemble/_bagging.py:1174:53-69: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/ensemble/_bagging.py:1248:24-39: No matching overload found for function `sum` called with arguments: (Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
+ ERROR sklearn/ensemble/_bagging.py:1248:24-39: No matching overload found for function `sum` called with arguments: (Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
- ERROR sklearn/ensemble/_bagging.py:1506:20-31: No matching overload found for function `sum` called with arguments: (Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
+ ERROR sklearn/ensemble/_bagging.py:1506:20-31: No matching overload found for function `sum` called with arguments: (Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
- ERROR sklearn/ensemble/_forest.py:325:29-41: No matching overload found for function `scipy.sparse._construct.hstack` called with arguments: (Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
+ ERROR sklearn/ensemble/_forest.py:325:29-41: No matching overload found for function `scipy.sparse._construct.hstack` called with arguments: (Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
- ERROR sklearn/ensemble/_forest.py:681:34-77: No matching overload found for function `numpy._core.fromnumeric.mean` called with arguments: (Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None], axis=Literal[0], dtype=type[float64]) [no-matching-overload]
+ ERROR sklearn/ensemble/_forest.py:681:34-77: No matching overload found for function `numpy._core.fromnumeric.mean` called with arguments: (Generator[Unknown | None, Unknown, None] | list[Unknown | None], axis=Literal[0], dtype=type[float64]) [no-matching-overload]
- ERROR sklearn/ensemble/_hist_gradient_boosting/binning.py:257:47-78: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/ensemble/_stacking.py:211:32-217:14: `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to attribute `estimators_` with type `list[Unknown]` [bad-assignment]
+ ERROR sklearn/ensemble/_stacking.py:211:32-217:14: `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to attribute `estimators_` with type `list[Unknown]` [bad-assignment]
- ERROR sklearn/ensemble/_voting.py:163:16-35: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/ensemble/tests/test_voting.py:432:16-33: Argument `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR sklearn/ensemble/tests/test_voting.py:432:16-33: Argument `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR sklearn/externals/_arff.py:872:23-67: `Generator[dict[int, Unknown | None], Unknown, Never] | Generator[Unknown, Unknown, Never] | list[Unknown] | tuple[list[Unknown], list[Unknown], list[Unknown]]` is not assignable to TypedDict key `data` with type `Iterator[list[Unknown]] | tuple[list[Unknown], ...]` [bad-typed-dict-key]
+ ERROR sklearn/externals/_arff.py:872:23-67: `Generator[dict[int, Unknown | None], Unknown, None] | Generator[Unknown, Unknown, None] | list[Unknown] | tuple[list[Unknown], list[Unknown], list[Unknown]]` is not assignable to TypedDict key `data` with type `Iterator[list[Unknown]] | tuple[list[Unknown], ...]` [bad-typed-dict-key]
- ERROR sklearn/externals/_arff.py:1038:13-69: yield from value must be iterable, got `Generator[LiteralString, Unknown, Never] | Generator[str, Unknown, Never] | Generator[str, Unknown, None]` [invalid-yield]
+ ERROR sklearn/externals/_arff.py:1038:13-69: yield from value must be iterable, got `Generator[LiteralString, Unknown, None] | Generator[str, Unknown, None]` [invalid-yield]
- ERROR sklearn/feature_extraction/_dict_vectorizer.py:260:50-51: Argument `Literal[1] | Number | None` is not assignable to parameter `value` with type `SupportsFloat | SupportsIndex | bytes | str | None` in function `numpy.floating.__new__` [bad-argument-type]
+ ERROR sklearn/feature_extraction/_dict_vectorizer.py:260:50-51: Argument `Literal[1] | Iterable[Unknown] | Number | None` is not assignable to parameter `value` with type `SupportsFloat | SupportsIndex | bytes | str | None` in function `numpy.floating.__new__` [bad-argument-type]
- ERROR sklearn/inspection/_permutation_importance.py:308:27-42: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/inspection/_plot/partial_dependence.py:743:21-34: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/linear_model/_coordinate_descent.py:1901:31-72: No matching overload found for function `numpy._core.fromnumeric.reshape` called with arguments: (Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None], tuple[int, int, Literal[-1]]) [no-matching-overload]
+ ERROR sklearn/linear_model/_coordinate_descent.py:1901:31-72: No matching overload found for function `numpy._core.fromnumeric.reshape` called with arguments: (Generator[Unknown | None, Unknown, None] | list[Unknown | None], tuple[int, int, Literal[-1]]) [no-matching-overload]
- ERROR sklearn/linear_model/_least_angle.py:1771:51-59: Argument `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR sklearn/linear_model/_least_angle.py:1771:51-59: Argument `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR sklearn/linear_model/_theil_sen.py:437:28-37: No matching overload found for function `numpy._core.shape_base.vstack` called with arguments: (Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
+ ERROR sklearn/linear_model/_theil_sen.py:437:28-37: No matching overload found for function `numpy._core.shape_base.vstack` called with arguments: (Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
- ERROR sklearn/linear_model/tests/test_coordinate_descent.py:1728:13-18: Class member `CVSplitterSampleWeight.split` overrides parent class `CVSplitter` in an inconsistent manner [bad-override]
- ERROR sklearn/linear_model/tests/test_sag.py:719:25-44: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/linear_model/tests/test_sag.py:720:25-44: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/model_selection/_search.py:1017:24-27: Argument `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR sklearn/model_selection/_search.py:1017:24-27: Argument `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR sklearn/model_selection/_search.py:1023:26-29: Argument `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR sklearn/model_selection/_search.py:1023:26-29: Argument `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR sklearn/model_selection/_search.py:1027:63-66: Argument `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR sklearn/model_selection/_search.py:1027:63-66: Argument `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR sklearn/model_selection/_validation.py:1227:20-34: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/model_selection/_validation.py:1228:32-75: No matching overload found for function `scipy.sparse._construct.vstack` called with arguments: (Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None], format=Unknown) [no-matching-overload]
+ ERROR sklearn/model_selection/_validation.py:1228:32-75: No matching overload found for function `scipy.sparse._construct.vstack` called with arguments: (Generator[Unknown | None, Unknown, None] | list[Unknown | None], format=Unknown) [no-matching-overload]
- ERROR sklearn/multiclass.py:390:20-39: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:391:35-54: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:392:20-39: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:393:38-57: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:477:20-39: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:478:35-54: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:502:29-45: Argument `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR sklearn/multiclass.py:502:29-45: Argument `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR sklearn/multiclass.py:504:43-61: No matching overload found for function `reversed.__new__` called with arguments: (type[reversed[_T]], Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
+ ERROR sklearn/multiclass.py:504:43-61: No matching overload found for function `reversed.__new__` called with arguments: (type[reversed[_T]], Generator[Unknown | None, Unknown, None] | list[Unknown | None]) [no-matching-overload]
- ERROR sklearn/multiclass.py:510:52-71: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:518:64-80: Argument `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR sklearn/multiclass.py:518:64-80: Argument `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR sklearn/multiclass.py:552:16-32: Argument `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR sklearn/multiclass.py:552:16-32: Argument `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR sklearn/multiclass.py:588:16-32: Argument `Generator[Unknown | None, Unknown, Never] | Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR sklearn/multiclass.py:588:16-32: Argument `Generator[Unknown | None, Unknown, None] | list[Unknown | None]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR sklearn/multiclass.py:589:20-39: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:927:20-39: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:928:35-54: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:1233:20-39: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:1234:35-54: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:1235:20-39: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multiclass.py:1236:38-57: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multioutput.py:191:17-36: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multioutput.py:201:35-54: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multioutput.py:202:35-54: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multioutput.py:203:35-54: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multioutput.py:204:38-57: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multioutput.py:281:20-39: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multioutput.py:282:35-54: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multioutput.py:283:20-39: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multioutput.py:284:38-57: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
- ERROR sklearn/multioutput.py:303:24-43: Cannot index into `Generator[Unknown | None, Unknown, Never]` [bad-index]
... (truncated 165 lines) ...
tornado (https://github.com/tornadoweb/tornado)
- ::error file=tornado/test/httpclient_test.py,line=134,col=9,endLine=134,endColumn=12,title=Pyrefly bad-override::Class member `SetHeaderHandler.get` overrides parent class `RequestHandler` in an inconsistent manner%0A `SetHeaderHandler.get` has type `BoundMethod[SetHeaderHandler, (self: SetHeaderHandler) -> Never]`, which is not assignable to `BoundMethod[SetHeaderHandler, (self: SetHeaderHandler, *args: str, **kwargs: str) -> None]`, the type of `RequestHandler.get`
+ ::error file=tornado/test/httpclient_test.py,line=134,col=9,endLine=134,endColumn=12,title=Pyrefly bad-override::Class member `SetHeaderHandler.get` overrides parent class `RequestHandler` in an inconsistent manner%0A `SetHeaderHandler.get` has type `BoundMethod[SetHeaderHandler, (self: SetHeaderHandler) -> None]`, which is not assignable to `BoundMethod[SetHeaderHandler, (self: SetHeaderHandler, *args: str, **kwargs: str) -> None]`, the type of `RequestHandler.get`
trio (https://github.com/python-trio/trio)
- ERROR src/trio/testing/_raises_group.py:422:9-17: Overload return type `None` is not assignable to implementation return type `Never` [inconsistent-overload]
- ERROR src/trio/testing/_raises_group.py:432:9-17: Overload return type `None` is not assignable to implementation return type `Never` [inconsistent-overload]
- ERROR src/trio/testing/_raises_group.py:447:9-17: Overload return type `None` is not assignable to implementation return type `Never` [inconsistent-overload]
- ERROR src/trio/testing/_raises_group.py:456:9-17: Overload return type `None` is not assignable to implementation return type `Never` [inconsistent-overload]
- ERROR src/trio/testing/_raises_group.py:465:9-17: Overload return type `None` is not assignable to implementation return type `Never` [inconsistent-overload]
- ERROR src/trio/testing/_raises_group.py:477:9-17: Overload return type `None` is not assignable to implementation return type `Never` [inconsistent-overload]
- ERROR src/trio/testing/_raises_group.py:486:9-17: Overload return type `None` is not assignable to implementation return type `Never` [inconsistent-overload]
- ERROR src/trio/testing/_raises_group.py:497:9-17: Overload return type `None` is not assignable to implementation return type `Never` [inconsistent-overload]
- ::error file=src/trio/testing/_raises_group.py,line=422,col=9,endLine=422,endColumn=17,title=Pyrefly inconsistent-overload::Overload return type `None` is not assignable to implementation return type `Never`
- ::error file=src/trio/testing/_raises_group.py,line=432,col=9,endLine=432,endColumn=17,title=Pyrefly inconsistent-overload::Overload return type `None` is not assignable to implementation return type `Never`
- ::error file=src/trio/testing/_raises_group.py,line=447,col=9,endLine=447,endColumn=17,title=Pyrefly inconsistent-overload::Overload return type `None` is not assignable to implementation return type `Never`
- ::error file=src/trio/testing/_raises_group.py,line=456,col=9,endLine=456,endColumn=17,title=Pyrefly inconsistent-overload::Overload return type `None` is not assignable to implementation return type `Never`
- ::error file=src/trio/testing/_raises_group.py,line=465,col=9,endLine=465,endColumn=17,title=Pyrefly inconsistent-overload::Overload return type `None` is not assignable to implementation return type `Never`
- ::error file=src/trio/testing/_raises_group.py,line=477,col=9,endLine=477,endColumn=17,title=Pyrefly inconsistent-overload::Overload return type `None` is not assignable to implementation return type `Never`
- ::error file=src/trio/testing/_raises_group.py,line=486,col=9,endLine=486,endColumn=17,title=Pyrefly inconsistent-overload::Overload return type `None` is not assignable to implementation return type `Never`
- ::error file=src/trio/testing/_raises_group.py,line=497,col=9,endLine=497,endColumn=17,title=Pyrefly inconsistent-overload::Overload return type `None` is not assignable to implementation return type `Never`
pywin32 (https://github.com/mhammond/pywin32)
+ ERROR Pythonwin/pywin/scintilla/formatter.py:462:9-18: Class member `PythonSourceFormatter.SetStyles` overrides parent class `Formatter` in an inconsistent manner [bad-override]
+ ERROR Pythonwin/pywin/scintilla/formatter.py:697:9-18: Class member `BuiltinPythonSourceFormatter.SetStyles` overrides parent class `BuiltinSourceFormatter` in an inconsistent manner [bad-override]
+ ERROR com/win32comext/axscript/client/framework.py:487:29-52: Object of class `NoneType` has no attribute `GetFuncDesc` [missing-attribute]
+ ERROR win32/Lib/win32pdhquery.py:458:9-13: Class member `Query.open` overrides parent class `BaseQuery` in an inconsistent manner [bad-override]
+ ::error file=Pythonwin/pywin/scintilla/formatter.py,line=462,col=9,endLine=462,endColumn=18,title=Pyrefly bad-override::Class member `PythonSourceFormatter.SetStyles` overrides parent class `Formatter` in an inconsistent manner%0A `PythonSourceFormatter.SetStyles` has type `BoundMethod[PythonSourceFormatter, (self: PythonSourceFormatter) -> None]`, which is not assignable to `BoundMethod[PythonSourceFormatter, (self: PythonSourceFormatter) -> Never]`, the type of `Formatter.SetStyles`
+ ::error file=Pythonwin/pywin/scintilla/formatter.py,line=697,col=9,endLine=697,endColumn=18,title=Pyrefly bad-override::Class member `BuiltinPythonSourceFormatter.SetStyles` overrides parent class `BuiltinSourceFormatter` in an inconsistent manner%0A `BuiltinPythonSourceFormatter.SetStyles` has type `BoundMethod[BuiltinPythonSourceFormatter, (self: BuiltinPythonSourceFormatter) -> None]`, which is not assignable to `BoundMethod[BuiltinPythonSourceFormatter, (self: BuiltinPythonSourceFormatter) -> Never]`, the type of `BuiltinSourceFormatter.SetStyles`
+ ::error file=com/win32comext/axscript/client/framework.py,line=487,col=29,endLine=487,endColumn=52,title=Pyrefly missing-attribute::Object of class `NoneType` has no attribute `GetFuncDesc`
+ ::error file=win32/Lib/win32pdhquery.py,line=458,col=9,endLine=458,endColumn=13,title=Pyrefly bad-override::Class member `Query.open` overrides parent class `BaseQuery` in an inconsistent manner%0A `Query.open` has type `BoundMethod[Query, (self: Query, *args: Unknown, **namedargs: Unknown) -> None]`, which is not assignable to `BoundMethod[Query, (self: Query) -> Literal[0, 1]]`, the type of `BaseQuery.open`
zope.interface (https://github.com/zopefoundation/zope.interface)
- ERROR src/zope/interface/registry.py:552:25-39: `(_: Unknown) -> None` is not assignable to attribute `changed` with type `BoundMethod[AdapterRegistry, (self: AdapterRegistry, originally_changed: Unknown) -> Never]` [bad-assignment]
+ ERROR src/zope/interface/registry.py:552:25-39: `(_: Unknown) -> None` is not assignable to attribute `changed` with type `BoundMethod[AdapterRegistry, (self: AdapterRegistry, originally_changed: Unknown) -> None]` [bad-assignment]
- ::error file=src/zope/interface/declarations.py,line=243,col=9,endLine=243,endColumn=19,title=Pyrefly bad-override::Class member `_ImmutableDeclaration.interfaces` overrides parent class `Declaration` in an inconsistent manner%0A `_ImmutableDeclaration.interfaces` has type `BoundMethod[_ImmutableDeclaration, (self: _ImmutableDeclaration) -> Iterator[Unknown]]`, which is not assignable to `BoundMethod[_ImmutableDeclaration, (self: _ImmutableDeclaration) -> Generator[Unknown, Unknown, Never]]`, the type of `Declaration.interfaces`
+ ::error file=src/zope/interface/declarations.py,line=243,col=9,endLine=243,endColumn=19,title=Pyrefly bad-override::Class member `_ImmutableDeclaration.interfaces` overrides parent class `Declaration` in an inconsistent manner%0A `_ImmutableDeclaration.interfaces` has type `BoundMethod[_ImmutableDeclaration, (self: _ImmutableDeclaration) -> Iterator[Unknown]]`, which is not assignable to `BoundMethod[_ImmutableDeclaration, (self: _ImmutableDeclaration) -> Generator[Unknown, Unknown, None]]`, the type of `Declaration.interfaces`
- ::error file=src/zope/interface/registry.py,line=552,col=25,endLine=552,endColumn=39,title=Pyrefly bad-assignment::`(_: Unknown) -> None` is not assignable to attribute `changed` with type `BoundMethod[AdapterRegistry, (self: AdapterRegistry, originally_changed: Unknown) -> Never]`%0A Positional parameter name mismatch: got `_`, want `originally_changed`
+ ::error file=src/zope/interface/registry.py,line=552,col=25,endLine=552,endColumn=39,title=Pyrefly bad-assignment::`(_: Unknown) -> None` is not assignable to attribute `changed` with type `BoundMethod[AdapterRegistry, (self: AdapterRegistry, originally_changed: Unknown) -> None]`%0A Positional parameter name mismatch: got `_`, want `originally_changed`
poetry (https://github.com/python-poetry/poetry)
+ ERROR tests/fixtures/git/github.com/demo/no-version/setup.py:30:7-15: Argument `Any | None` is not assignable to parameter `version` with type `str` in function `setuptools.setup` [bad-argument-type]
+ ::error file=tests/fixtures/git/github.com/demo/no-version/setup.py,line=30,col=7,endLine=30,endColumn=15,title=Pyrefly bad-argument-type::Argument `Any | None` is not assignable to parameter `version` with type `str` in function `setuptools.setup`
schemathesis (https://github.com/schemathesis/schemathesis)
- ERROR src/schemathesis/generation/stateful/state_machine.py:202:9-32: Class member `APIStateMachine._add_results_to_targets` overrides parent class `RuleBasedStateMachine` in an inconsistent manner [bad-override]
- ::error file=src/schemathesis/generation/stateful/state_machine.py,line=202,col=9,endLine=202,endColumn=32,title=Pyrefly bad-override::Class member `APIStateMachine._add_results_to_targets` overrides parent class `RuleBasedStateMachine` in an inconsistent manner%0A `APIStateMachine._add_results_to_targets` has type `BoundMethod[APIStateMachine, (self: APIStateMachine, targets: tuple[str, ...], results: list[StepOutput | None]) -> None]`, which is not assignable to `BoundMethod[APIStateMachine, (self: APIStateMachine, targets: Unknown, results: Unknown) -> Never]`, the type of `RuleBasedStateMachine._add_results_to_targets`
psycopg (https://github.com/psycopg/psycopg)
+ ERROR tests/crdb/test_connection_async.py:93:17-32: Type `None` is not awaitable [not-async]
+ ERROR tests/crdb/test_cursor_async.py:79:5-20: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_async.py:446:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_async.py:478:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_async.py:685:5-23: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_async.py:919:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_async.py:985:9-66: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_common_async.py:190:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_common_async.py:225:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_common_async.py:259:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_common_async.py:285:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_common_async.py:318:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_common_async.py:440:5-25: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_common_async.py:538:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_common_async.py:549:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_common_async.py:571:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_common_async.py:699:9-66: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_null_async.py:191:9-24: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_null_async.py:220:9-24: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_null_async.py:250:9-24: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_null_async.py:294:9-24: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_null_async.py:324:9-24: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_null_async.py:352:9-24: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_null_async.py:388:9-24: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_null_async.py:424:9-26: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_pool_null_async.py:494:9-66: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_sched_async.py:58:5-20: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_sched_async.py:89:5-20: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_sched_async.py:113:9-24: Type `None` is not awaitable [not-async]
+ ERROR tests/pool/test_sched_async.py:131:9-24: Type `None` is not awaitable [not-async]
+ ERROR tests/test_copy_async.py:1055:5-58: Type `None` is not awaitable [not-async]
+ ERROR tests/test_cursor_common_async.py:503:5-53: Type `None` is not awaitable [not-async]
+ ERROR tests/test_notify_async.py:82:5-27: Type `None` is not awaitable [not-async]
+ ERROR tests/test_notify_async.py:127:9-29: Type `None` is not awaitable [not-async]
+ ERROR tests/test_notify_async.py:172:9-29: Type `None` is not awaitable [not-async]
+ ERROR tests/test_notify_async.py:197:9-29: Type `None` is not awaitable [not-async]
+ ERROR tests/test_notify_async.py:217:9-29: Type `None` is not awaitable [not-async]
+ ERROR tests/test_notify_async.py:258:9-29: Type `None` is not awaitable [not-async]
+ ERROR tests/test_notify_async.py:340:5-27: Type `None` is not awaitable [not-async]
+ ERROR tests/test_waiting_async.py:115:9-29: Type `None` is not awaitable [not-async]
+ ERROR tests/test_waiting_async.py:170:9-29: Type `None` is not awaitable [not-async]
+ ERROR tests/test_waiting_async.py:224:9-29: Type `None` is not awaitable [not-async]
+ ERROR tests/test_waiting_async.py:381:5-20: Type `None` is not awaitable [not-async]
+ ::error file=tests/crdb/test_connection_async.py,line=93,col=17,endLine=93,endColumn=32,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/crdb/test_cursor_async.py,line=79,col=5,endLine=79,endColumn=20,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_async.py,line=446,col=9,endLine=446,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_async.py,line=478,col=9,endLine=478,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_async.py,line=685,col=5,endLine=685,endColumn=23,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_async.py,line=919,col=9,endLine=919,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_async.py,line=985,col=9,endLine=985,endColumn=66,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_common_async.py,line=190,col=9,endLine=190,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_common_async.py,line=225,col=9,endLine=225,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_common_async.py,line=259,col=9,endLine=259,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_common_async.py,line=285,col=9,endLine=285,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_common_async.py,line=318,col=9,endLine=318,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_common_async.py,line=440,col=5,endLine=440,endColumn=25,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_common_async.py,line=538,col=9,endLine=538,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_common_async.py,line=549,col=9,endLine=549,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_common_async.py,line=571,col=9,endLine=571,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_common_async.py,line=699,col=9,endLine=699,endColumn=66,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_null_async.py,line=191,col=9,endLine=191,endColumn=24,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_null_async.py,line=220,col=9,endLine=220,endColumn=24,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_null_async.py,line=250,col=9,endLine=250,endColumn=24,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_null_async.py,line=294,col=9,endLine=294,endColumn=24,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_null_async.py,line=324,col=9,endLine=324,endColumn=24,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_null_async.py,line=352,col=9,endLine=352,endColumn=24,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_null_async.py,line=388,col=9,endLine=388,endColumn=24,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_null_async.py,line=424,col=9,endLine=424,endColumn=26,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_pool_null_async.py,line=494,col=9,endLine=494,endColumn=66,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_sched_async.py,line=58,col=5,endLine=58,endColumn=20,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_sched_async.py,line=89,col=5,endLine=89,endColumn=20,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_sched_async.py,line=113,col=9,endLine=113,endColumn=24,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/pool/test_sched_async.py,line=131,col=9,endLine=131,endColumn=24,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_copy_async.py,line=1055,col=5,endLine=1055,endColumn=58,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_cursor_common_async.py,line=503,col=5,endLine=503,endColumn=53,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_notify_async.py,line=82,col=5,endLine=82,endColumn=27,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_notify_async.py,line=127,col=9,endLine=127,endColumn=29,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_notify_async.py,line=172,col=9,endLine=172,endColumn=29,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_notify_async.py,line=197,col=9,endLine=197,endColumn=29,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_notify_async.py,line=217,col=9,endLine=217,endColumn=29,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_notify_async.py,line=258,col=9,endLine=258,endColumn=29,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_notify_async.py,line=340,col=5,endLine=340,endColumn=27,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_waiting_async.py,line=115,col=9,endLine=115,endColumn=29,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_waiting_async.py,line=170,col=9,endLine=170,endColumn=29,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_waiting_async.py,line=224,col=9,endLine=224,endColumn=29,title=Pyrefly not-async::Type `None` is not awaitable
+ ::error file=tests/test_waiting_async.py,line=381,col=5,endLine=381,endColumn=20,title=Pyrefly not-async::Type `None` is not awaitable
meson (https://github.com/mesonbuild/meson)
... (truncated 98 lines) ...``` |
stroxler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks right to me, I'll aim to get a second review and merge it
grievejia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review automatically exported from Phabricator review in Meta.
Summary
Fix implicit return inference so trailing for loops no longer cause functions without explicit return to be inferred as returning Never
Fixes #1491
Test Plan