-
```py
def foo() -> None:
_ = [1] # error: no-any-expr
```
[playground](https://mypy-play.net/?mypy=latest&python=3.12&flags=show-error-codes%2Cstrict%2Ccheck-untyped-defs%2Cdisallow-any-decora…
-
MyPy is a terrific project that lets us introduce static typing into parts of our code. Since there are certain parts of the code which follow a specific type, use MyPy to type check those portions.
…
-
-
Inside [this repo](https://github.com/python/mypy):
```
ryan@DevPC-LX /media/ryan/stuff/mypy master $ ghi 2373
/var/lib/gems/1.9.1/gems/ghi-1.2.0/lib/ghi/commands/show.rb:52:in `pull_request?': u…
-
When I incorporate `flatbuffers` into a Python program that is typed, I get the following warning from `mypy` when I attempt to `import flatbuffers`:
> Skipping analyzing "flatbuffers": module is i…
-
I have custom user model that inherits from UserProfile from django-tenant-users package. UserProfile has custom model manager. In my model I see an error from mypy:
`Mypy: Could not resolve manager…
-
Currently, dangerzone uses standalone dev scripts, living in the `dev_scripts` and `install` folders.
We could put these scripts inside a common module, which would make it possible to:
- Factor…
almet updated
1 month ago
-
NumPy is adding type annotations in 1.20 (due December?). We can then stop ignoring it in `mypy` runs. It looks like SciPy 1.6.0 (in December as well?) may support the annotations as well. It appears …
-
`mypy` reports type errors when trying to use a subclass of a DataFrameModel in a scenario where the parent class would be accepted. Ordinarily I'd expect that a subclass would satisfy a type hint ask…
-
Using Injector to bind a concrete class to an abstract interface, and then getting an instance of that interface causes a mypy error:
```
class MyABC(ABC): pass
class MyClass(MyABC): pass
inje…