Search code examples
How to get property return type annotation?...

pythonpython-typing

Read More
What is the correct way of using typing.Literal?...

pythonpython-typingmypy

Read More
Type hint for a dict gives TypeError: 'type' object is not subscriptable...

pythonpython-typing

Read More
What is the benefit to using typing library classes vs. types in Python type hints?...

pythonpython-typing

Read More
What is the type annotation for return value of __getitem__?...

pythonpytorchpython-typing

Read More
Using modern typing features on older versions of Python...

pythonpython-typing

Read More
Python TypeHint a function that returns different types based on input...

pythonpython-typingpyright

Read More
How to strongly type the "value" attribute to be str or a custom type?...

pythonenumspython-typingpyright

Read More
Type hint for a cast-like function that raises if casting is not possible...

pythoncastingmypypython-typing

Read More
Enforcing type checking in Python functions...

pythonpython-typing

Read More
Type assertion in MyPy...

pythonpython-typingmypy

Read More
Pylance shows error when variable type changes...

pythonpython-typingpyright

Read More
How to get `mypy` to raise errors/warnings about using the `typing` package instead of built in type...

pythonpython-typingmypy

Read More
How to type hint a Callable of a function with default arguments?...

pythonpython-typingmypy

Read More
How to transform or unpack *args types for typing variadics...

pythongenericspython-typingvariadic-functions

Read More
Function parameter: complex parameter structure understanding...

pythonpython-typing

Read More
Mypy doesn't raise error for missing unimplemented abstract method...

pythonpython-typingmypy

Read More
How to declare Python constraint on generic type to support __lt__?...

pythongenericspython-typing

Read More
Subclass in type hinting...

pythonsubclasspython-typing

Read More
Is it possible to type hint a lambda function?...

pythonlambdapython-typing

Read More
Where can I find the type annotations for methods of built-in types?...

pythonpython-typingmypytypeshed

Read More
Type of Union or Union of Types...

pythonpython-typing

Read More
How can I get format to not cause a type-hinting error?...

pythonlist-comprehensionpython-typingmypy

Read More
How to avoid stubtest's “[symbol] is not present at runtime” error...

pythonpython-typingmypy

Read More
Why does VSCode "Go to Definition" only partially work?...

pythonvisual-studio-codepython-typingpylance

Read More
How to type hint the Apache Beam default DoFn.TimestampParam...

pythonapache-beampython-typingmypy

Read More
How to pass an untyped dictionary assigned to a variable to a method that expects a TypedDict withou...

pythonpython-typingmypy

Read More
Type hint decorator for sync & async functions...

pythonpython-typingpython-decorators

Read More
Type hint pytz timezone...

pythonpython-typingpytz

Read More
What is the difference between "cast(...)" and "... # type: ..."?...

pythonpython-typing

Read More
BackNext