Skip to content

issues Search Results · repo:microsoft/pyright language:Python

Filter by

7k results
 (71 ms)

7k results

inmicrosoft/pyright (press backspace or delete to remove)

Describe the bug Pylance mistakenly uses CoroutineType to denote the return type of overloaded async generator functions, because there is no yield within the function body. Code or Screenshots from ...
as designed
bug
  • inaku-Gyan
  • 2
  • Opened 
    yesterday
  • #10746

Describe the bug There s some unexpected behavior in v1.1.402 regarding Sentinel naming. The desired type inference only works if the sentinel has an uppercased name, which is treated as a constant. As ...
bug
  • aolieman
  • Opened 
    2 days ago
  • #10744

Pyright 1.1.403 does not recognize Pydantic s validate_by_name config flag, which is shown by the following valid code: from pydantic import BaseModel, Field class Model(BaseModel): class Config: ...
as designed
bug
  • CharlesMasson
  • 1
  • Opened 
    2 days ago
  • #10741

Describe the bug Item access my_dict[my_key], where my_dict is a TypedDict, does not lead to errors when my_key is of type str, violating the guarantees of PEP 589 and the Python docs: Type checkers should ...
as designed
bug
  • codethief
  • 2
  • Opened 
    2 days ago
  • #10740

Describe the bug Matching on a union where one of the sides is generic leads to potential runtime case overlap Code from dataclasses import dataclass from typing import reveal_type type Either[L, R] ...
as designed
bug
  • lambda-abstraction
  • 1
  • Opened 
    2 days ago
  • #10738

!-- Read the guidelines for filing an issue first. https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue I m using function attributes to add static behavior to a ...
as designed
bug
  • Bouska
  • 4
  • Opened 
    2 days ago
  • #10743

Describe the bug Overloads of a function which differentiate between Literal[True] and Literal[False] for a parameter results in a reportOverlappingOverload error. The error message is Overload 1 for ...
as designed
bug
  • conradhaupt
  • 1
  • Opened 
    2 days ago
  • #10737

Is your feature request related to a problem? Please describe. import random def mystery() - float | None: if bool(random.getrandbits(1)): return random.random() else: return ...
enhancement request
  • brasswood
  • 1
  • Opened 
    2 days ago
  • #10736

playground class A: pass metacls: type = A.__class__ # ^^^^^^^^^^^ # Type property is not assignable to declared type type # property is not assignable to type (reportAssignmentType) ...
as designed
enhancement request
  • Glinte
  • 2
  • Opened 
    2 days ago
  • #10735

from __future__ import annotations from dataclasses import dataclass from typing import Final @dataclass(frozen=True) class Wrapper[T]: val: T # this dont work either # val: Final[T] ...
as designed
bug
  • Alan-Chen99
  • 1
  • Opened 
    2 days ago
  • #10734
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub