StackOverflow Questions for Tag: pyright

jdoe
jdoe

Reputation: 23

Cannot use None as TypeVar constraint?

Score: 0

Views: 52

Answers: 1

Read More
Laurent Claessens
Laurent Claessens

Reputation: 695

coc-pyright inlay hint position

Score: 0

Views: 29

Answers: 0

Read More
Danii672
Danii672

Reputation: 33

Python generic TypeVar bound to generic base class

Score: 0

Views: 39

Answers: 0

Read More
Arpit Pandey
Arpit Pandey

Reputation: 11

How to get live suggestions from an LSP like pyright and metals without any code editor

Score: 1

Views: 63

Answers: 1

Read More
Vin
Vin

Reputation: 1037

Why can't Pylance fully infer the return type of this function?

Score: 0

Views: 68

Answers: 1

Read More
palapapa
palapapa

Reputation: 959

Can I disable type errors from third-party packages in Pylance?

Score: 20

Views: 1708

Answers: 5

Read More
Houston4444
Houston4444

Reputation: 1

Python typing: Is there a way to type a variable with the value of another variable

Score: 0

Views: 76

Answers: 1

Read More
LeGEC
LeGEC

Reputation: 52081

What is the correct way to please the typechecker for a '(bytes | str) -> str' function?

Score: 2

Views: 187

Answers: 1

Read More
Vulwsztyn
Vulwsztyn

Reputation: 2271

assert_type with callable

Score: 1

Views: 58

Answers: 1

Read More
ssice
ssice

Reputation: 3683

Can the * (unpacking) operator be typed in Python? Or any other variadic args function such that all variadic types are in the result type?

Score: 5

Views: 2857

Answers: 2

Read More
Gang
Gang

Reputation: 225

Why there is an unbound variable error warning by pyright in this simple python function

Score: 16

Views: 39367

Answers: 2

Read More
George
George

Reputation: 4011

How do I get Pylance to ignore the possibility of None?

Score: 53

Views: 29929

Answers: 3

Read More
Mil
Mil

Reputation: 33

Pylance reports "Code is unreachable", when my test shows otherwise

Score: 3

Views: 530

Answers: 2

Read More
0x60
0x60

Reputation: 3214

Contravariance in Python protocols

Score: 2

Views: 120

Answers: 0

Read More
Jacktose
Jacktose

Reputation: 733

Type hinting Python inheritance “Base classes of [child] are mutually incompatible”

Score: 0

Views: 93

Answers: 3

Read More
Grégoire Roussel
Grégoire Roussel

Reputation: 947

Why are generic arguments described by `T@function_name` by pyright?

Score: 2

Views: 137

Answers: 1

Read More
tierriminator
tierriminator

Reputation: 649

Type aliasing Python's `typing.Annotated` type

Score: 1

Views: 78

Answers: 0

Read More
Boschie
Boschie

Reputation: 607

Python typing: do stubs take precedence over library sources?

Score: 6

Views: 1797

Answers: 2

Read More
mcocdawc
mcocdawc

Reputation: 1867

Properly re-expose submodule (or is this a bug in pylance)

Score: 1

Views: 61

Answers: 1

Read More
fam
fam

Reputation: 93

No overloads for "update" match the provided arguments

Score: 4

Views: 3810

Answers: 1

Read More
PreviousPage 1Next