Search code examples
Python 3.6+ annotation of argument that could be of string or any class...


pythonpython-typing

Read More
What does `Dict[str, Any]` mean in Python?...


pythondictionarypython-typing

Read More
Python Annotations: return type as an instance...


pythonpycharmpython-typing

Read More
How do I type annotate using any type as a key in a Python dictionary?...


pythondictionarypython-typingmypy

Read More
Annotate the type of key and value but not the key name in a python dictionary...


pythondictionarypython-typing

Read More
How do I fix a type error (missing annotation) for my discord bot? (Python 3)...


pythondiscorddiscord.pypython-typing

Read More
How do I read extended annotations from Annotated?...


pythonpython-typing

Read More
Annotate a tuple containing an NDArray...


pythonnumpypython-typing

Read More
Attribute annotation results in "invalid syntax" error in Python2.7?...


pythonpython-2.7python-typing

Read More
What type annotation should I use to type a function that accept a type T and a value of that type u...


pythongenericspython-typing

Read More
Cannot import .pyi file in stubs package...


pythonpython-typing

Read More
How to annotate a return type as either a class instance or its (unique) subclass instance?...


pythonpython-typingmypy

Read More
How to annotate a write-only property using type hints...


pythonpython-typingmypy

Read More
How can i add a function / method to the annotation of another function / list in Python?...


pythonpython-typing

Read More
Which one is the correct way of using Python type hints with Django Models?...


pythondjangopython-typing

Read More
Python annotation's type for nested list with mix of numbers and lists...


pythonpython-typing

Read More
Python annotation's type for nested list with undefined nested list depth...


pythonpython-typing

Read More
Python typing: How to assert which type from a union of types a value has?...


pythonpython-typingmypy

Read More
How to add type annotation to self parameter of the decorator of class method?...


pythonpython-typingpython-decorators

Read More
Anotate a function argument type...


pythonpython-typing

Read More
python: annotation for ellipsis to be a possible argument of a function...


pythonpython-typingellipsis

Read More
Python typing annotations in try/except blocks...


pythonpython-typingmypy

Read More
Python: use Type Hints together with Annotations...


pythonpython-typing

Read More
Python Annotate Two Exact Strings for Function Parameter...


pythonpython-typingpep8

Read More
Override Python property annotation...


pythoninheritancepython-typing

Read More
Scope of return type hints in Python...


pythonpython-typing

Read More
Is there a Python type for annotation that represents something that has `__contains__` method?...


pythonpython-typing

Read More
How to get type annotation within python function scope?...


pythonpython-typing

Read More
Python3 Cython: function __annotation__ yields unicode instead of str...


pythoncythonpython-typing

Read More
SystemError is raised after attempt to create function with positional-only args in runtime inside o...


pythonfunctionpython-typingpython-3.8positional-parameter

Read More
BackNext