Skip to content

issues Search Results · repo:python/mypy language:Python

Filter by

11k results
 (69 ms)

11k results

inpython/mypy (press backspace or delete to remove)

func-returns-value seems to have an allowance for functions which themselves return None -- but not for functions which return a union with None Bug Report def returns_none() - None: ... def also_returns_none() ...
bug
  • asottile
  • Opened 
    21 minutes ago
  • #19433

def main(cond: bool) - None: woo = None if cond and (woo := 5) in range(10): reveal_type(woo) # should reveal int, reveals int | None
bug
good-second-issue
topic-pep-572
topic-type-narrowing
  • hauntsaninja
  • 4
  • Opened 
    yesterday
  • #19430

Mypy configuration is incomplete img width= 324 height= 116 alt= Image src= https://github.com/user-attachments/assets/ca5073e4-bf38-41c5-9034-79498a61b383 /
bug
pending
  • heyshahabuddin
  • 1
  • Opened 
    yesterday
  • #19429

!-- If you re not sure whether what you re experiencing is a mypy bug, please see the Question and Help form instead. Please consider: - checking our common issues page: https://mypy.readthedocs.io/en/stable/common_issues.html ...
bug
topic-daemon
  • SemMulder
  • 8
  • Opened 
    2 days ago
  • #19425

!-- If you re not sure whether what you re experiencing is a mypy bug, please see the Question and Help form instead. Please consider: - checking our common issues page: https://mypy.readthedocs.io/en/stable/common_issues.html ...
bug
pending
topic-type-narrowing
topic-type-variables
  • InvincibleRMC
  • 4
  • Opened 
    2 days ago
  • #19421

!-- If you re not sure whether what you re experiencing is a mypy bug, please see the Question and Help form instead. Please consider: - checking our common issues page: https://mypy.readthedocs.io/en/stable/common_issues.html ...
bug
topic-enum
  • cfriedland5
  • Opened 
    3 days ago
  • #19418

mypy parses NamedTuple class definition in the same way it parses regular class variables: from typing import NamedTuple from typing import reveal_type class A(NamedTuple): foo: str = foo reveal_type(A.foo) ...
topic-named-tuple
topic-runtime-semantics
  • Gatsik
  • Opened 
    4 days ago
  • #19414

!-- If you re not sure whether what you re experiencing is a mypy bug, please see the Question and Help form instead. Please consider: - checking our common issues page: https://mypy.readthedocs.io/en/stable/common_issues.html ...
bug
  • randolf-scholz
  • 1
  • Opened 
    4 days ago
  • #19413

!-- If you re not sure whether what you re experiencing is a mypy bug, please see the Question and Help form instead. Please consider: - checking our common issues page: https://mypy.readthedocs.io/en/stable/common_issues.html ...
crash
  • gopidesupavan
  • 6
  • Opened 
    4 days ago
  • #19412

Feature Is it in-scope for either mypy or stubtest to detect incorrect or missing defaults in overloads? Incorrect default from typing import Literal, overload, reveal_type @overload def foo(a: Literal[True] ...
feature
  • MarcoGorelli
  • 4
  • Opened 
    4 days ago
  • #19411
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 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