Showing posts with the label
typing
Issue I want to do something like class my_class: def __add__(self, other: "my_class"…
Issue I would like to create custom Python type hint that would effectively be MyType = Dict[str, …
Issue class Element: def __call__(self, *args, **kwargs): print('Hello') …
Issue Currently i'm trying to work more with numpy typing to make my code clearer however i'…
Issue I have a dataclass that can take values that are part of an enum. class MyEnum(Enum): A …
Issue I have a function which will return a dictionary like: from typing import Dict def foo() -&…
Issue Let's say I want to annotate the parameter to a function, and it should satisfy both typi…
Issue Let's say I have something like the following: import inspect from collections.abc impor…
Issue How can I create a TypedDict class that supports keys containing hyphens or other characters …
Issue I need to check if object is descendant of typing.Literal, I have annotation like this: Game…