-
Using codec() of xju 2.0.3 with the code snippet:
``` python
ArgType = TypeVar("ArgType")
class C1(Generic[ArgType]):
def func(self, argtype: ArgType):
_argtype_codec = codec(argtype)…
-
When using the Mypy linter, our standard is to have a `mypy.ini` in the project's root with a bunch of config values. Currently we have our developers use this setting for vscode:
```json
"python.…
-
Running mypy on code that uses the latest version of `pypistats` fails with the error message "module is installed, but missing library stubs or py.typed marker". A quick look at `pypistats`'s source…
-
**Describe your question**
How to understand `from typing import Any, Dict, List` in `examples/ft_transformer.py` and other places?
-
**Crash Report**
Mypy Daemon crashed attempting to generate type suggestions for `__reduce__` function in class with nonstandard `__new__`. (re-creating #15823)
**Traceback**
```
dmypy s…
-
When implementing #142 I encountered a tricky type annotation scenario and used a workaround.
The `AnyPath` constructor instead of `to_anypath` in the code referenced below runs fine, but `mypy` co…
-
In 5.0.3, the value of a [`GenericRelation`](https://docs.djangoproject.com/en/5.0/ref/contrib/contenttypes/#django.contrib.contenttypes.fields.GenericRelation) field is given the useless type `_ST` (…
-
from an environment with the lldb python module and mypy installed
```
echo "import lldb" > test.py
mypy test.py
test.py:1: error: Skipping analyzing "lldb": module is installed, but missing lib…
-
See https://typing.readthedocs.io/en/latest/spec/distributing.html#import-conventions
A normal `from foo import bar` in module `a` should not allow another module to do `from a import bar`; an expl…
-
**Bug Report**
Mypy fails with unions of a union of dict types with literal keys: a dict literal which can be assigned to a variable of type `A` cannot be assigned to a variable of type `A | B`.
…