Search code examples
Cast variable to right type automatically in Python...


pythoncastingpython-typing

Read More
Should I cast to string and then to int for mypy?...


pythonpython-typingmypy

Read More
Type hinting in Pycharm for dynamically generated classes...


pythonsqlalchemypycharmpython-typing

Read More
Type annotations for dynamically created subclasses...


pythonpython-typing

Read More
How to set type hint on field when dynamically creating a class...


pythonpython-typingpydantic

Read More
Dynamic class level type hints in python?...


pythonpycharmpython-typing

Read More
Is it possible to have an inline-definition of a dataclass in Python?...


pythonpython-typingpython-dataclassespyright

Read More
MyPy displays an error when inheriting from str and adding metaclass...


pythoninheritancemypypython-typing

Read More
Type hinting a Hypothesis composite strategy...


pythonmypypython-typingpython-hypothesis

Read More
Why is `re.Pattern` generic?...


pythonmypypython-typingpython-re

Read More
Why does Python not allow Generics with isinstance checks?...


pythongenericspython-typingisinstance

Read More
How to annotate that a function produces a dataclass?...


pythonpython-typingmypy

Read More
Pandas 'type' object is not subscriptable...


pythonpandasmypypython-typing

Read More
typing for rare case fallback None value...


pythonpython-typing

Read More
Type hinting list of child classes when the original list is of the parent's type in Python...


pythonpython-typing

Read More
Is there a way to ignore mypy checks on a single function?...


pythonpython-typingmypy

Read More
typechecking for textx models...


pythonpython-typingmypytextx

Read More
How do I type hint for class wrapper or class with method assigned elsewhere than definition in Pyth...


pythonpython-typingpython-decorators

Read More
Sequence or list type annotation with append...


pythonpython-typing

Read More
Managing Circular Dependencies and Type Hints Between Mutually Referencing Classes in Python...


pythonpython-typingcircular-dependency

Read More
distinguishing homogeneous and heterogeneous tuples in python function overloads...


pythonpython-typingmypy

Read More
Type hint for a list with 0 or more items...


pythonpython-typing

Read More
List[Optional[int]] type checking when assigning...


pythonpython-typingmypy

Read More
How to type hint a particular dict type but allow empty dict in Python 3?...


pythonpython-typing

Read More
Type hint for a list initialized with None elements...


pythonlistpython-typing

Read More
Type hinting a collection of a specified type...


pythonpython-typing

Read More
Python type hinting: how to tell X is a subclass for Foo?...


pythonpython-typing

Read More
Python type hints and context managers...


pythonpython-typingmypy

Read More
mypy and attrs: errors typechecking lists of subclasses...


pythonpython-typingmypy

Read More
"List[Child]" is incompatible with "List[Parent]"...


pythonpython-typingmypy

Read More
BackNext