StackOverflow Questions for Tag: python-typing

rizwan_ahmed
rizwan_ahmed

Reputation: 1

i allways stuck in this error of module not found and missing types like stubs?

Score: -4

Views: 59

Answers: 0

Read More
PirateApp
PirateApp

Reputation: 6240

Skipping analyzing "feedparser.util": module is installed, but missing library stubs or py.typed marker

Score: 11

Views: 13303

Answers: 1

Read More
spacether
spacether

Reputation: 2721

Is it possible to type hint a callable that takes positional arguments only using a generic for the positional type?

Score: 0

Views: 71

Answers: 1

Read More
Sahan Chinthaka
Sahan Chinthaka

Reputation: 116

How to add a type hint to a variable representing self in a static method within a class

Score: 1

Views: 652

Answers: 2

Read More
RussAbbott
RussAbbott

Reputation: 2738

To what extent does Google Colab support Python typing?

Score: 10

Views: 3125

Answers: 3

Read More
Stan
Stan

Reputation: 370

Mypy: type narrowing via exception in function?

Score: 1

Views: 69

Answers: 2

Read More
Michael Moreno
Michael Moreno

Reputation: 1349

Python equivalent to `as` type assertion in TypeScript

Score: 10

Views: 2783

Answers: 2

Read More
Harm van den Brand
Harm van den Brand

Reputation: 305

How to prevent typehint errors for Pydantic datetime validation

Score: 4

Views: 153

Answers: 1

Read More
Inon
Inon

Reputation: 2376

Type hinting / annotation (PEP 484) for numpy.ndarray

Score: 219

Views: 201412

Answers: 6

Read More
Pro Q
Pro Q

Reputation: 5038

How to extend type-hinting for a class in a stub file

Score: 0

Views: 26

Answers: 1

Read More
DblDpl
DblDpl

Reputation: 1

Writing decorator adding callables taking objects of generic type to instance list

Score: 0

Views: 51

Answers: 0

Read More
roschach
roschach

Reputation: 9396

Python get_type_hints not returning parent's annotations of child dataclass

Score: 1

Views: 44

Answers: 1

Read More
Cauly
Cauly

Reputation: 540

How to use a type defined later for function annotations?

Score: 8

Views: 1797

Answers: 4

Read More
Pro Q
Pro Q

Reputation: 5038

What is the correct type hint for `os.path.dirname`?

Score: 1

Views: 48

Answers: 0

Read More
Robo Robok
Robo Robok

Reputation: 22785

How to create a literal TypeGuard in Python?

Score: 0

Views: 49

Answers: 0

Read More
Simon Todd
Simon Todd

Reputation: 1

I am getting Incompatible types in assignment (expression has type "Optional[LinkedList]", variable has type "LinkedList")

Score: 0

Views: 2186

Answers: 2

Read More
Rohit
Rohit

Reputation: 3156

Narrowing typing on a subclass

Score: 1

Views: 52

Answers: 1

Read More
Danii672
Danii672

Reputation: 33

Python generic TypeVar bound to generic base class

Score: 0

Views: 39

Answers: 0

Read More
Aviv Aviv
Aviv Aviv

Reputation: 131

Annotating *args and **kwargs

Score: 0

Views: 58

Answers: 0

Read More
Yosh
Yosh

Reputation: 2742

How to annotate a generator in Python 3?

Score: 79

Views: 28286

Answers: 3

Read More
PreviousPage 1Next