Skip to content

Add support for checking code snippets #631

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

darricklaidin
Copy link
Contributor

@darricklaidin darricklaidin commented Jul 4, 2025

This PR aims to resolve #503. It adds support for checking Python code snippets directly from the command line using the --command flag, equivalent to mypy -c. This enables quick type checking of code without creating temporary files.

The implementation creates a virtual module system where snippets are treated as files stored in memory. This allows reuse of the entire existing type checking pipeline while maintaining clean separation between file-based and snippet-based workflows. The virtual module approach also ensures snippets integrate seamlessly with import resolution and configuration systems.

Core Implementation

  • CLI Interface: Added --command <CODE> flag to accept Python code strings
  • Module System: Extended ModulePathDetails with CommandSnippet variant for virtual modules
  • Memory Storage: Implemented in-memory code storage using <string> as virtual file path
  • Type Checking: Reused existing run_inner() infrastructure for consistent behavior

Key Files Modified

  • pyrefly/bin/main.rs: Added command-line argument parsing and run_command_check()
  • pyrefly/lib/module/module_path.rs: Added CommandSnippet variant and display logic
  • pyrefly/lib/commands/check.rs: Added run_once_with_snippet() method
  • pyrefly/lib/state/load.rs: Added memory lookup for snippet code loading

Usage Examples

pyrefly check --command "x: int = 'hello'"
pyrefly check --command "import requests; r = requests.get('url')"
pyrefly check --command "def foo(): pass" --config strict.toml
pyrefly check --command "bad_code" --output-format json

Tests have been added to test/command_snippet.md.

@darricklaidin
Copy link
Contributor Author

I have stuck with --command as the flag name for now. Happy to change this if/when we finalize on something.

Copy link

github-actions bot commented Jul 4, 2025

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

meson (https://github.com/mesonbuild/meson)
- ERROR .../projects/meson/mesonbuild/interpreter/interpreter.py:3490:79-83: Argument `list[BothLibraries | BuildTarget | CustomTarget | CustomTargetIndex | ExtractedObjects | File | GeneratedList | str]` is not assignable to parameter `sources` with type `list[BuildTarget | CustomTarget | CustomTargetIndex | ExtractedObjects | File | GeneratedList | StructuredSources]` in function `mesonbuild.build.Executable.__init__` [bad-argument-type]

openlibrary (https://github.com/internetarchive/openlibrary)
- ERROR .../projects/openlibrary/openlibrary/plugins/openlibrary/lists.py:833:43-835:18: Cannot set item in `dict[str, list[dict[Unknown, Unknown]]]` [bad-argument-type]
- ERROR .../projects/openlibrary/openlibrary/plugins/openlibrary/lists.py:840:40-88: Cannot set item in `dict[str, list[dict[Unknown, Unknown]]]` [bad-argument-type]
- ERROR .../projects/openlibrary/openlibrary/plugins/openlibrary/lists.py:845:42-847:18: Cannot set item in `dict[str, list[dict[Unknown, Unknown]]]` [bad-argument-type]

ignite (https://github.com/pytorch/ignite)
- ERROR .../projects/ignite/ignite/metrics/precision.py:91:9-14: Class member `_BasePrecisionRecall.reset` overrides parent class `_BaseClassification` in an inconsistent manner [bad-override]

CPython (Argument Clinic) (https://github.com/python/cpython)
+ ERROR /tmp/mypy_primer/projects/CPython (Argument Clinic)/Lib/idlelib/idle_test/test_browser.py:25:40-48: Instance-only attribute `root` of class `ModuleBrowserTest` is not visible on the class [missing-attribute]

sympy (https://github.com/sympy/sympy)
- ERROR .../projects/sympy/sympy/core/exprtools.py:749:21-36: Cannot set item in `Unknown | None` [missing-attribute]
- ERROR .../projects/sympy/sympy/core/exprtools.py:751:21-36: Cannot set item in `Unknown | None` [missing-attribute]
+ ERROR .../projects/sympy/sympy/integrals/prde.py:346:33-34: Type `Sized` is not iterable [not-iterable]
- ERROR .../projects/sympy/sympy/integrals/prde.py:386:37-38: Type `Sized` is not iterable [not-iterable]
+ ERROR .../projects/sympy/sympy/integrals/prde.py:418:18-24: Cannot unpack tuple[Unknown, ...] | tuple[Unknown, Unknown, Unknown] | Unknown (of size 3) into 2 values [bad-unpacking]
+ ERROR .../projects/sympy/sympy/ntheory/multinomial.py:160:30-39: No matching overload found for function `filter.__new__` [no-matching-overload]
+ ERROR .../projects/sympy/sympy/ntheory/residue_ntheory.py:1488:15-22: `-` is not supported between `SupportsIndex` and `Literal[1]` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/physics/vector/fieldfunctions.py:312:9-29: Cannot set item in `Mapping[Basic | complex, Expr | complex]` [missing-attribute]
- ERROR .../projects/sympy/sympy/physics/vector/functions.py:107:24-33: Object of class `NoneType` has no attribute `dcm` [missing-attribute]
+ ERROR .../projects/sympy/sympy/polys/matrices/sdm.py:1977:9-2018:43: `Mapping[Unknown, Unknown] | dict[Unknown, Unknown]` is not assignable to `dict[Unknown, Unknown]` (caused by inconsistent types when breaking cycles) [bad-assignment]
+ ERROR .../projects/sympy/sympy/polys/matrices/sdm.py:2023:13-36: Cannot set item in `dict[Unknown, Unknown]` [missing-attribute]
+ ERROR .../projects/sympy/sympy/polys/matrices/sdm.py:2025:13-34: Cannot set item in `Mapping[Unknown, Unknown] | dict[Unknown, Unknown]` [missing-attribute]
- ERROR .../projects/sympy/sympy/solvers/solvers.py:1724:42-48: Argument `list[dict[Unknown, Basic | ComplexInfinity | Integer | NaN | Zero | float | Unknown | Unknown]] | list[dict[Unknown, Expr | list[Unknown] | tuple[Unknown, int] | Unknown]] | list[dict[Unknown, Unknown]] | Unknown` is not assignable to parameter `solutions` with type `list[dict[Expr, Expr]]` in function `_remove_duplicate_solutions` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/solvers/solvers.py:1724:42-48: Argument `list[dict[Unknown, Basic | Integer | Zero | float | Unknown | Unknown]] | list[dict[Unknown, Expr | list[Unknown] | tuple[Unknown, int] | Unknown]] | list[dict[Unknown, Unknown]] | Unknown` is not assignable to parameter `solutions` with type `list[dict[Expr, Expr]]` in function `_remove_duplicate_solutions` [bad-argument-type]
- ERROR .../projects/sympy/sympy/solvers/solvers.py:2741:43-46: Argument `Basic | ComplexInfinity | Integer | NaN | Zero | float | Unknown | Unknown` is not assignable to parameter `x` with type `SupportsAbs[@_]` in function `abs` [bad-argument-type]
+ ERROR .../projects/sympy/sympy/solvers/solvers.py:2741:43-46: Argument `Basic | Integer | Zero | float | Unknown | Unknown` is not assignable to parameter `x` with type `SupportsAbs[@_]` in function `abs` [bad-argument-type]
- ERROR .../projects/sympy/sympy/solvers/solvers.py:2768:55-60: Object of class `ComplexInfinity` has no attribute `p` [missing-attribute]
- ERROR .../projects/sympy/sympy/solvers/solvers.py:2768:55-60: Object of class `NaN` has no attribute `p` [missing-attribute]
- ERROR .../projects/sympy/sympy/solvers/solvers.py:2769:44-49: Object of class `ComplexInfinity` has no attribute `p` [missing-attribute]
- ERROR .../projects/sympy/sympy/solvers/solvers.py:2769:44-49: Object of class `NaN` has no attribute `p` [missing-attribute]
- ERROR .../projects/sympy/sympy/solvers/solvers.py:2772:47-52: Object of class `ComplexInfinity` has no attribute `q` [missing-attribute]
- ERROR .../projects/sympy/sympy/solvers/solvers.py:2772:47-52: Object of class `NaN` has no attribute `q` [missing-attribute]
- ERROR .../projects/sympy/sympy/solvers/solvers.py:2773:39-44: Object of class `ComplexInfinity` has no attribute `q` [missing-attribute]
- ERROR .../projects/sympy/sympy/solvers/solvers.py:2773:39-44: Object of class `NaN` has no attribute `q` [missing-attribute]
- ERROR .../projects/sympy/sympy/solvers/solvers.py:3171:5-3295:18: `Basic | ComplexInfinity | NaN | Zero | float | Unknown | Unknown` is not assignable to `Zero` (caused by inconsistent types when breaking cycles) [bad-assignment]

pandas (https://github.com/pandas-dev/pandas)
+ ERROR .../projects/pandas/pandas/core/algorithms.py:874:18-33: Object of class `NoneType` has no attribute `value_counts` [missing-attribute]
+ ERROR .../projects/pandas/pandas/core/algorithms.py:885:32-34: Argument `Series | tuple[Series | Unknown | None, ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Unknown] | Unknown | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/core/arrays/sparse/accessor.py:271:13-31: Object of class `NoneType` has no attribute `array` [missing-attribute]
+ ERROR .../projects/pandas/pandas/core/arrays/sparse/accessor.py:272:19-37: Object of class `NoneType` has no attribute `index` [missing-attribute]
+ ERROR .../projects/pandas/pandas/core/arrays/sparse/accessor.py:273:18-35: Object of class `NoneType` has no attribute `name` [missing-attribute]
+ ERROR .../projects/pandas/pandas/core/computation/align.py:96:24-52: No matching overload found for function `dict.__init__` [no-matching-overload]
+ ERROR .../projects/pandas/pandas/core/indexes/accessors.py:372:23-55: Object of class `DatetimeIndex` has no attribute `to_pydatetime` [missing-attribute]
+ ERROR .../projects/pandas/pandas/core/indexes/accessors.py:372:23-55: Object of class `PeriodArray` has no attribute `to_pydatetime` [missing-attribute]
+ ERROR .../projects/pandas/pandas/core/indexes/accessors.py:372:23-55: Object of class `TimedeltaIndex` has no attribute `to_pydatetime` [missing-attribute]
+ ERROR .../projects/pandas/pandas/plotting/_matplotlib/boxplot.py:535:13-22: Cannot set item in `Unknown | None` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/apply/test_frame_apply.py:977:25-33: Object of class `tuple` has no attribute `number` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/apply/test_frame_apply.py:977:35-43: Object of class `tuple` has no attribute `string` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/arrays/boolean/test_function.py:21:32-39: Object of class `ExtensionArray` has no attribute `_data` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/arrays/boolean/test_function.py:21:41-48: Object of class `ExtensionArray` has no attribute `_data` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/arrays/boolean/test_function.py:64:32-39: Object of class `ExtensionArray` has no attribute `_data` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/extension/base/methods.py:576:26-44: Object of class `type` has no attribute `_from_sequence` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/extension/base/methods.py:586:13-31: Object of class `type` has no attribute `_from_sequence` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/extension/base/methods.py:606:30-48: Object of class `type` has no attribute `_from_sequence` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/extension/decimal/test_decimal.py:366:32-55: No matching overload found for function `numpy._typing._ufunc._UFunc_Nin2_Nout1.__call__` [no-matching-overload]
+ ERROR .../projects/pandas/pandas/tests/extension/test_sparse.py:309:25-43: Object of class `type` has no attribute `_from_sequence` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/extension/test_sparse.py:316:13-31: Object of class `type` has no attribute `_from_sequence` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/extension/test_sparse.py:323:30-48: Object of class `type` has no attribute `_from_sequence` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/indexing/test_setitem.py:510:27-34: Object of class `NoneType` has no attribute `cat` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/indexing/test_setitem.py:517:19-29: Object of class `NoneType` has no attribute `values` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/indexing/test_setitem.py:518:28-38: Object of class `NoneType` has no attribute `values` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/indexing/test_setitem.py:519:19-29: Object of class `NoneType` has no attribute `astype` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/indexing/test_setitem.py:521:27-40: Object of class `NoneType` has no attribute `dtype` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/indexing/test_setitem.py:522:27-38: Object of class `NoneType` has no attribute `cat` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/indexing/test_setitem.py:909:15-25: Object of class `NoneType` has no attribute `values` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/indexing/test_setitem.py:938:9-17: Object of class `NoneType` has no attribute `name` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/indexing/test_setitem.py:939:32-50: Object of class `NoneType` has no attribute `sort_index` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/indexing/test_setitem.py:939:54-68: Object of class `NoneType` has no attribute `sort_index` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/methods/test_convert_dtypes.py:221:35-65: No matching overload found for function `pandas.core.tools.datetimes.to_datetime` [no-matching-overload]
+ ERROR .../projects/pandas/pandas/tests/frame/methods/test_info.py:58:42-60:10: No matching overload found for function `numpy.ndarray.take` [no-matching-overload]
+ ERROR .../projects/pandas/pandas/tests/frame/test_constructors.py:2410:16-41: Object of class `NoneType` has no attribute `value_counts` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/frame/test_constructors.py:2411:16-41: Object of class `NoneType` has no attribute `value_counts` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/generic/test_duplicate_labels.py:206:13-36: Unexpected keyword argument `allows_duplicate_labels` in function `pandas.core.series.Series.__init__` [unexpected-keyword]
+ ERROR .../projects/pandas/pandas/tests/groupby/methods/test_value_counts.py:1063:43-51: Argument `list[list[int]]` is not assignable to parameter `tuples` with type `Iterable[tuple[Hashable, ...]]` in function `pandas.core.indexes.multi.MultiIndex.from_tuples` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/groupby/test_categorical.py:197:34-42: Object of class `NoneType` has no attribute `values` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/groupby/test_categorical.py:197:63-71: Object of class `NoneType` has no attribute `values` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/groupby/test_categorical.py:451:5-16: Object of class `NoneType` has no attribute `name` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/groupby/test_categorical.py:460:24-37: Object of class `NoneType` has no attribute `values` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/indexing/multiindex/test_slice.py:696:52-81: Argument `list[Iterable[Hashable] | ndarray[tuple[int], dtype[signedinteger[Any]]]]` is not assignable to parameter `iterables` with type `Sequence[Iterable[Hashable]]` in function `pandas.core.indexes.multi.MultiIndex.from_product` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/interchange/test_impl.py:329:19-35: Unpacked keyword argument `int` is not assignable to parameter `tzinfo` with type `tzinfo | None` in function `datetime.datetime.__new__` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/io/excel/test_writers.py:816:27-57: Object of class `NoneType` has no attribute `astype` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/io/excel/test_writers.py:837:41-52: No matching overload found for function `list.__init__` [no-matching-overload]
+ ERROR .../projects/pandas/pandas/tests/resample/test_datetime_index.py:914:81-85: Argument `Literal[True]` is not assignable to parameter `ambiguous` with type `Literal['NaT', 'infer', 'raise'] | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]` in function `pandas.core.indexes.datetimes.DatetimeIndex.__new__` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:41:5-17: Type `None` is not iterable [not-iterable]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:53:5-17: Type `None` is not iterable [not-iterable]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:65:5-17: Type `None` is not iterable [not-iterable]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:78:33-52: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:82:19-26: Object of class `NoneType` has no attribute `codes` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:82:44-56: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:93:27-39: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:95:37-49: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:96:27-44: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:97:33-45: Object of class `NoneType` has no attribute `codes` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:170:27-44: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:237:5-17: Type `None` is not iterable [not-iterable]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:239:27-44: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:247:12-23: Object of class `NoneType` has no attribute `name` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:255:27-44: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:279:27-44: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:281:12-21: Can't apply arguments to non-class, got None [bad-specialization]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:282:12-21: Can't apply arguments to non-class, got None [bad-specialization]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:283:12-25: Can't apply arguments to non-class, got None [bad-specialization]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:284:12-25: Can't apply arguments to non-class, got None [bad-specialization]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:371:5-17: Type `None` is not iterable [not-iterable]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:446:26-48: Argument `NaTType | Timestamp` is not assignable to parameter `left` with type `Timestamp` in function `pandas._libs.interval.Interval.__init__` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:446:50-72: Argument `NaTType | Timestamp` is not assignable to parameter `right` with type `Timestamp` in function `pandas._libs.interval.Interval.__init__` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:447:26-48: Argument `NaTType | Timestamp` is not assignable to parameter `left` with type `Timestamp` in function `pandas._libs.interval.Interval.__init__` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:447:50-72: Argument `NaTType | Timestamp` is not assignable to parameter `right` with type `Timestamp` in function `pandas._libs.interval.Interval.__init__` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:470:5-14: Type `None` is not iterable [not-iterable]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:573:12-29: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:576:12-23: Object of class `NoneType` has no attribute `isna` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:584:5-24: Type `None` is not iterable [not-iterable]
- ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:609:27-38: Argument `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Unknown` is not assignable to parameter `left` with type `Index` in function `pandas._testing.asserters.assert_index_equal` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:609:27-38: Argument `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Unknown | Unknown` is not assignable to parameter `left` with type `Index` in function `pandas._testing.asserters.assert_index_equal` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:615:5-24: Type `None` is not iterable [not-iterable]
- ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:623:27-38: Argument `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Unknown` is not assignable to parameter `left` with type `Index` in function `pandas._testing.asserters.assert_index_equal` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:623:27-38: Argument `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Unknown | Unknown` is not assignable to parameter `left` with type `Index` in function `pandas._testing.asserters.assert_index_equal` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:741:12-37: Object of class `NoneType` has no attribute `value_counts` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:742:12-37: Object of class `NoneType` has no attribute `value_counts` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:783:33-45: Object of class `NoneType` has no attribute `array` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_cut.py:807:18-35: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_get_dummies.py:726:64-73: Object of class `NoneType` has no attribute `string` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_get_dummies.py:735:74-83: Object of class `NoneType` has no attribute `string` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_qcut.py:34:5-14: Type `None` is not iterable [not-iterable]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_qcut.py:37:14-31: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_qcut.py:40:14-31: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_qcut.py:79:27-40: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_qcut.py:87:17-28: Can't apply arguments to non-class, got None [bad-specialization]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_qcut.py:188:31-48: Object of class `NoneType` has no attribute `categories` [missing-attribute]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_qcut.py:244:21-70: Argument `NaTType | Timestamp` is not assignable to parameter `left` with type `Timestamp` in function `pandas._libs.interval.Interval.__init__` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_qcut.py:245:21-60: Argument `NaTType | Timestamp` is not assignable to parameter `right` with type `Timestamp` in function `pandas._libs.interval.Interval.__init__` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_qcut.py:248:21-60: Argument `NaTType | Timestamp` is not assignable to parameter `left` with type `Timestamp` in function `pandas._libs.interval.Interval.__init__` [bad-argument-type]
+ ERROR .../projects/pandas/pandas/tests/reshape/test_qcut.py:249:21-60: Argument `NaTType | Timestamp` is not assignable to parameter `right` with type `Timestamp` in function `pandas._libs.interval.Interval.__init__` [bad-argument-type]

... (truncated 35 lines) ...

scipy (https://github.com/scipy/scipy)
- ERROR .../projects/scipy/scipy/_lib/cobyqa/examples/powell1994.py:91:31-59: No matching overload found for function `numpy._core.shape_base.block` [no-matching-overload]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:232:21-41: Cannot set item in `ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]]` [missing-attribute]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:232:44-64: Can't apply arguments to non-class, got ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]] [bad-specialization]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:266:17-39: Cannot set item in `ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]]` [missing-attribute]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:266:17-39: Cannot set item in `ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]]` [no-matching-overload]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:266:42-64: Can't apply arguments to non-class, got ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]] [bad-specialization]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:266:17-39: Cannot set item in `ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]]` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:266:42-64: Cannot index into `ndarray[tuple[Any, ...], dtype[int]]` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:266:42-64: Cannot index into `ndarray[tuple[Any, ...], dtype[Unknown]]` [no-matching-overload]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:305:13-28: Cannot set item in `ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]]` [missing-attribute]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:305:32-50: Expected an iterable, got `ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]]` [not-iterable]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:305:33-50: Can't apply arguments to non-class, got ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]] [bad-specialization]
- ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:305:52-62: Can't apply arguments to non-class, got ndarray[tuple[Any, ...], dtype[int]] | ndarray[tuple[Any, ...], dtype[Unknown]] [bad-specialization]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:55-72: Cannot index into `Buffer` [missing-attribute]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:55-72: Cannot index into `_SupportsArray[dtype[Any]]` [missing-attribute]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:55-72: Cannot index into `bytes` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:55-72: Cannot index into `complex` [missing-attribute]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:55-72: Cannot index into `str` [no-matching-overload]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:57-71: Cannot index into `_NestedSequence[bytes | complex | str]` [bad-argument-type]
+ ERROR .../projects/scipy/scipy/_lib/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:381:57-71: Cannot index into `_NestedSequence[_SupportsArray[dtype[Any]]]` [bad-argument-type]
+ ERROR .../projects/scipy/scipy/optimize/_lsq/dogbox.py:202:18-24: TODO: Expr::attr_infer_for_type attribute base undefined for type: @_ (trying to access copy) [missing-attribute]
+ ERROR .../projects/scipy/scipy/sparse/linalg/_expm_multiply.py:550:9-556:35: `int | None` is not assignable to `int` (caused by inconsistent types when breaking cycles) [bad-assignment]
- ERROR .../projects/scipy/scipy/sparse/linalg/_expm_multiply.py:554:50-65: `*` is not supported between `int` and `None` [bad-argument-type]
- ERROR .../projects/scipy/scipy/sparse/linalg/_isolve/iterative.py:761:13-764:33: `int | matrix[tuple[int, int], dtype[Any]] | ndarray[tuple[int, int], dtype[Any]] | ndarray[tuple[int, int], dtype[Unknown]] | ndarray[tuple[int, int], [_2DShapeT_co, _DTypeT_co](self: matrix[_2DShapeT_co, _DTypeT_co]) -> _DTypeT_co] | ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[Any, ...], [_2DShapeT_co, _DTypeT_co](self: matrix[_2DShapeT_co, _DTypeT_co]) -> _DTypeT_co] | Unknown` is not assignable to `_NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool]]]] | _NestedSequence[builtins.bool] | _SupportsArray[dtype[numpy.bool[builtins.bool]]] | builtins.bool` (caused by inconsistent types when breaking cycles) [bad-assignment]
- ERROR .../projects/scipy/scipy/sparse/linalg/_isolve/iterative.py:762:30-42: No matching overload found for function `numpy._core.multiarray.dot` [no-matching-overload]
- ERROR .../projects/scipy/scipy/sparse/linalg/_isolve/iterative.py:766:32-35: No matching overload found for function `numpy.linalg._linalg.norm` [no-matching-overload]
- ERROR .../projects/scipy/scipy/sparse/linalg/_isolve/iterative.py:768:29-33: Cannot index into `int` [missing-attribute]
+ ERROR .../projects/scipy/scipy/sparse/linalg/_isolve/iterative.py:768:29-33: Cannot index into `complex` [missing-attribute]
+ ERROR .../projects/scipy/scipy/stats/_binned_statistic.py:752:24-31: Can't apply arguments to non-class, got None [bad-specialization]
+ ERROR .../projects/scipy/scipy/stats/_binned_statistic.py:753:23-30: Can't apply arguments to non-class, got None [bad-specialization]
+ ERROR .../projects/scipy/scipy/stats/_binned_statistic.py:757:35-42: Can't apply arguments to non-class, got None [bad-specialization]

CPython (cases_generator) (https://github.com/python/cpython)
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/asyncio/base_subprocess.py:18:26-31: Argument `Unknown | None` is not assignable to parameter `extra` with type `dict[Unknown, Unknown]` in function `Lib.asyncio.transports.BaseTransport.__init__` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/asyncio/transports.py:273:26-31: Argument `Unknown | None` is not assignable to parameter `extra` with type `dict[Unknown, Unknown]` in function `BaseTransport.__init__` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/asyncio/unix_events.py:490:26-31: Argument `Unknown | None` is not assignable to parameter `extra` with type `dict[Unknown, Unknown]` in function `Lib.asyncio.transports.BaseTransport.__init__` [bad-argument-type]
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/idlelib/grep.py:90:9-13: Class member `GrepDialog.open` overrides parent class `SearchDialogBase` in an inconsistent manner [bad-override]
- ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/idlelib/idle_test/test_browser.py:25:40-48: Instance-only attribute `root` of class `ModuleBrowserTest` is not visible on the class [missing-attribute]
+ ERROR /tmp/mypy_primer/projects/CPython (cases_generator)/Lib/unittest/signals.py:43:24-25: Cannot set item in `WeakKeyDictionary[Unknown, None]` [bad-argument-type]

CPython (peg_generator) (https://github.com/python/cpython)
- ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/asyncio/base_subprocess.py:18:26-31: Argument `Unknown | None` is not assignable to parameter `extra` with type `dict[Unknown, Unknown]` in function `Lib.asyncio.transports.BaseTransport.__init__` [bad-argument-type]
- ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/asyncio/transports.py:273:26-31: Argument `Unknown | None` is not assignable to parameter `extra` with type `dict[Unknown, Unknown]` in function `BaseTransport.__init__` [bad-argument-type]
- ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/asyncio/unix_events.py:490:26-31: Argument `Unknown | None` is not assignable to parameter `extra` with type `dict[Unknown, Unknown]` in function `Lib.asyncio.transports.BaseTransport.__init__` [bad-argument-type]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/idlelib/idle_test/test_browser.py:25:40-48: Instance-only attribute `root` of class `ModuleBrowserTest` is not visible on the class [missing-attribute]
- ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/multiprocessing/context.py:223:9-15: Class member `Process._Popen` overrides parent class `BaseProcess` in an inconsistent manner [bad-override]
+ ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/multiprocessing/context.py:251:32-56: `DefaultContext | ForkContext | ForkServerContext | SpawnContext | Unknown` is not assignable to attribute `_actual_context` with type `None` [bad-assignment]
- ERROR /tmp/mypy_primer/projects/CPython (peg_generator)/Lib/unittest/signals.py:43:24-25: Cannot set item in `WeakKeyDictionary[Unknown, None]` [bad-argument-type]

apprise (https://github.com/caronc/apprise)
- ERROR .../projects/apprise/apprise/plugins/burstsms.py:308:26-30: Argument `tuple[Unknown | None, Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/burstsms.py:308:26-30: Argument `tuple[str | Unknown | None, str | Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/dingtalk.py:147:27-148:66: `str | Unknown | None` is not assignable to attribute `secret` with type `None` [bad-assignment]
+ ERROR .../projects/apprise/apprise/plugins/fcm/__init__.py:255:28-51: `str | Unknown | None` is not assignable to attribute `project` with type `None` [bad-assignment]
+ ERROR .../projects/apprise/apprise/plugins/fcm/__init__.py:277:27-49: `str | Unknown | None` is not assignable to attribute `apikey` with type `None` [bad-assignment]
+ ERROR .../projects/apprise/apprise/plugins/home_assistant.py:140:24-141:58: `str | Unknown | None` is not assignable to attribute `nid` with type `None` [bad-assignment]
- ERROR .../projects/apprise/apprise/plugins/kumulos.py:167:22-26: Argument `tuple[Unknown | None, Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/kumulos.py:167:22-26: Argument `tuple[str | Unknown | None, str | Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/lametric.py:500:46-502:61: `str | Unknown | None` is not assignable to attribute `lametric_app_access_token` with type `None` [bad-assignment]
+ ERROR .../projects/apprise/apprise/plugins/lametric.py:511:41-512:72: `str | Unknown | None` is not assignable to attribute `lametric_app_ver` with type `None` [bad-assignment]
+ ERROR .../projects/apprise/apprise/plugins/lametric.py:530:36-58: `str | Unknown | None` is not assignable to attribute `lametric_apikey` with type `None` [bad-assignment]
- ERROR .../projects/apprise/apprise/plugins/mailgun.py:524:26-46: Argument `tuple[Literal['api'], Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/mailgun.py:524:26-46: Argument `tuple[Literal['api'], str | Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/matrix.py:359:33-360:55: `str | Unknown | None` is not assignable to attribute `access_token` with type `None` [bad-assignment]
+ ERROR .../projects/apprise/apprise/plugins/notifiarr.py:321:17-43: Cannot index into `str` [no-matching-overload]
- ERROR .../projects/apprise/apprise/plugins/notifiarr.py:322:17-45: Cannot set item in `NotifyType | dict[str, bool | str] | dict[str, dict[str, int | Unknown] | dict[str, str | Unknown] | dict[str, Unknown]] | Unknown | Unknown` [missing-attribute]
+ ERROR .../projects/apprise/apprise/plugins/notifiarr.py:322:17-45: Cannot set item in `NotifyType | dict[str, bool | str] | dict[str, dict[str, int | Unknown] | dict[str, str | Unknown] | dict[str, Unknown]] | str | Unknown | Unknown` [missing-attribute]
+ ERROR .../projects/apprise/apprise/plugins/notifiarr.py:322:17-45: Cannot set item in `NotifyType | dict[str, bool | str] | dict[str, dict[str, int | Unknown] | dict[str, str | Unknown] | dict[str, Unknown]] | str | Unknown | Unknown` [missing-attribute]
- ERROR .../projects/apprise/apprise/plugins/notifiarr.py:322:48-324:18: Cannot set item in `NotifyType | dict[str, bool | str] | dict[str, dict[str, int | Unknown] | dict[str, str | Unknown] | dict[str, Unknown]] | Unknown | Unknown` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/notifiarr.py:322:48-324:18: Cannot set item in `NotifyType | dict[str, bool | str] | dict[str, dict[str, int | Unknown] | dict[str, str | Unknown] | dict[str, Unknown]] | str | Unknown | Unknown` [bad-argument-type]
- ERROR .../projects/apprise/apprise/plugins/one_signal.py:417:35-52: Argument `bool | dict[LazyTranslation | bool | str | Unknown, Unknown] | Unknown | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/one_signal.py:417:35-52: Argument `bool | dict[LazyTranslation | bool | str | Unknown, Unknown] | str | Unknown | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR .../projects/apprise/apprise/plugins/pagerduty.py:232:27-49: `Unknown | None` is not assignable to attribute `source` with type `LazyTranslation | bool | str` [bad-assignment]
+ ERROR .../projects/apprise/apprise/plugins/pagerduty.py:232:27-49: `str | Unknown | None` is not assignable to attribute `source` with type `LazyTranslation | bool | str` [bad-assignment]
- ERROR .../projects/apprise/apprise/plugins/pagerduty.py:244:30-55: `Unknown | None` is not assignable to attribute `component` with type `LazyTranslation | bool | str` [bad-assignment]
+ ERROR .../projects/apprise/apprise/plugins/pagerduty.py:244:30-55: `str | Unknown | None` is not assignable to attribute `component` with type `LazyTranslation | bool | str` [bad-assignment]
+ ERROR .../projects/apprise/apprise/plugins/pagertree.py:176:31-57: `str | Unknown | None` is not assignable to attribute `thirdparty` with type `None` [bad-assignment]
- ERROR .../projects/apprise/apprise/plugins/plivo.py:248:26-30: Argument `tuple[Unknown | None, Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/plivo.py:248:26-30: Argument `tuple[str | Unknown | None, str | Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
- ERROR .../projects/apprise/apprise/plugins/popcorn_notify.py:191:26-30: Argument `tuple[Unknown | None, None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/popcorn_notify.py:191:26-30: Argument `tuple[str | Unknown | None, None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
- ERROR .../projects/apprise/apprise/plugins/pushover.py:499:22-26: Argument `tuple[Unknown | None, Literal['']]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/pushover.py:499:22-26: Argument `tuple[str | Unknown | None, Literal['']]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/slack.py:355:33-356:78: `str | Unknown | None` is not assignable to attribute `access_token` with type `None` [bad-assignment]
- ERROR .../projects/apprise/apprise/plugins/twilio.py:351:26-30: Argument `tuple[Unknown | None, Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/twilio.py:351:26-30: Argument `tuple[str | Unknown | None, str | Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
- ERROR .../projects/apprise/apprise/plugins/zulip.py:296:26-30: Argument `tuple[str, Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/plugins/zulip.py:296:26-30: Argument `tuple[str, str | Unknown | None]` is not assignable to parameter `auth` with type `((PreparedRequest) -> PreparedRequest) | AuthBase | tuple[str, str] | None` in function `requests.api.post` [bad-argument-type]
+ ERROR .../projects/apprise/apprise/utils/parse.py:1134:50-57: No matching overload found for function `re.Pattern.match` [no-matching-overload]

steam.py (https://github.com/Gobot1234/steam.py)
+ ERROR .../projects/steam.py/steam/clan.py:60:26-31: Expected 0 positional arguments, got 4 in function `object.__init__` [bad-argument-type]
+ ERROR .../projects/steam.py/steam/clan.py:564:15-28: Class member `Clan.fetch_members` overrides parent class `PartialClan` in an inconsistent manner [bad-override]
+ ERROR .../projects/steam.py/steam/message.py:100:59-85: Expected default `ClanMember | PartialMember` of `ClanMessageAuthorT` to be assignable to the upper bound of `PartialMember` [invalid-type-var]
+ ERROR .../projects/steam.py/steam/state.py:1438:25-31: Argument `ClanMember | GroupMember | PartialMember` is not assignable to parameter `author` with type `ClientUser | PartialUser | User` in function `steam.invite.ClanInvite.__init__` [bad-argument-type]
+ ERROR .../projects/steam.py/steam/state.py:1446:25-31: Argument `ClanMember | GroupMember | PartialMember` is not assignable to parameter `author` with type `ClientUser | PartialUser | User` in function `steam.invite.GroupInvite.__init__` [bad-argument-type]

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

Successfully merging this pull request may close these issues.

Feature request: allow checking snippets, equivalent to mypy -c
2 participants