sizeargument, they make arrays of identical RVs (more accurately, they create an object that represents an array of identical RVs), and become indexable. Is there a good way to capture this sort of thing that might be indexable in a stub?
__init__(with multiple overloads) for a single class, and the
__init__doesn't return anything, so I still don't see how this would let mypy tell when indexing into the resulting object is and is not kosher.
Hey there, are there any per-requisites for stubgen to generate stubs of annotated .py -files? I have a file with a dataclass and I would like to generate stub files for it. But when I run
stubgen address I only get an empty
__init__.pyi file. This is the python module
from typing import Optional class Address: street: str housenumber: int housenumber_postfix: Optional[str]
Am I missing something?
__getitem__using that tuple type as the index type, on the superclass?
*args, **kwargs) down to the leaves of the inheritance tree, or is there some way to tell mypy about this? Do we just put in the
awaitbit them, so it got me thinking about it again)
main.pywhich uses "foo" via
python -m mypy main.pygives me
error: Cannot find module named 'foo'.