Search code examples
How to type hint kwargs when they are passed as is to another function?...


pythonpython-typing

Read More
How to type hint with an optional import?...


pythonmypypython-typing

Read More
Alias for an typable Union...


pythonpython-typing

Read More
Python unions with typevars...


pythonpython-typing

Read More
Pydantic 2.0 multiple Basemodel classes - how to handle class dependencies...


pythonpython-typingpydantic

Read More
Modifying a dataclass object such that only specified elements are overridden...


pythonpython-typingdeep-copypython-dataclasses

Read More
Check separately if an object is an empty list | if an object not passed | if an object not list...


pythonpython-typing

Read More
Type Narrowing of Class Attributes in Python (TypeGuard) without Subclassing...


pythonpython-typingtypeguardstype-narrowing

Read More
Type hinting pairwise with overhang...


pythonpython-itertoolspython-typing

Read More
Can a class in python not use its generic parameter...


pythonpython-typing

Read More
List of Union only accepts first type of union with Pydantic...


pythonlistunionpython-typingpydantic

Read More
Return Type: If conditional call to sys.exit() in function...


pythonpython-typing

Read More
completion/intellisense on (*args ,**kwargs) functions...


pythonpython-typing

Read More
MyPy can't find types for my local package...


pythonmypypython-typingpython-poetry

Read More
Correct typing of a method without a fixed signature...


pythonpython-typing

Read More
For a function decorator, how can a single optional kwarg item be type-constrained, but otherwise ke...


pythonpython-typing

Read More
GitPython: error: Module "git" does not explicitly export attribute "Repo" [attr...


pythonmypypython-typinggitpython

Read More
Type annotation for the arguments of a function...


pythonpython-typing

Read More
Use type hints from pydantic model for if/else logic...


pythonpython-typingpydantic

Read More
How can I explicitly specify a class type for a Python variable?...


pythonlistpython-typing

Read More
Forward reference to enclosing class in optional return type, without typing.Optional?...


pythonpython-typing

Read More
How to provide type hinting to UserDict?...


pythonmypypython-typing

Read More
An argument that can be a combination of enum.IntFlag...


pythonenumspython-typing

Read More
Type hint function accepting a Union...


pythonpython-typingpyright

Read More
Specify argument and return types of dict transpose function...


pythonpython-typing

Read More
In python, how can I type hint an input that is not str or bytes and is a sequence?...


pythonpython-typing

Read More
Issue with using a TypeVar as an argument to a Callable...


pythonpython-3.xmypypython-typing

Read More
What's the correct way to type hint an empty list as a literal in python?...


pythonpython-typing

Read More
What is the correct type hint for unsigned integer numpy arrays?...


pythonnumpymypypython-typing

Read More
Pycharm does not accept "list[Example]" as type hint for list of items...


pythonpython-typing

Read More
BackNext