-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Issues: python/mypy
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Author
Label
Projects
Milestones
Assignee
Sort
Issues list
Give a warning if a local variable is assigned to but never read
feature
priority-1-normal
topic-variable-scope
#76
opened Jan 29, 2013 by
JukkaL
Type check global after function definition
bug
mypy got something wrong
priority-2-low
topic-variable-scope
#538
opened Dec 19, 2014 by
spkersten
x = x or y
with x undeclared gives no error
bug
#937
opened Oct 15, 2015 by
jhance
Disallow locally-generated types from escaping their function
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#4690
opened Mar 7, 2018 by
msullivan
Using not yet defined variables is allowed
bug
mypy got something wrong
priority-2-low
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#2788
opened Feb 1, 2017 by
afrieder
Class variable gets the type of instance variable
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#4886
opened Apr 11, 2018 by
roganov
Exception variable can leak to other scopes causing strange error messages
priority-2-low
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-usability
topic-variable-scope
#6647
opened Apr 8, 2019 by
ilevkivskyi
deleting a class-scoped variable that shadows a global variable causes mypy to think it's undefined
bug
mypy got something wrong
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#9600
opened Oct 15, 2020 by
glyph
Mypy issue with python scoping rule
bug
mypy got something wrong
priority-1-normal
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#8746
opened Apr 29, 2020 by
h8hawk
mypy confuses dataclass field name with imported function name
bug
mypy got something wrong
topic-dataclasses
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#10640
opened Jun 13, 2021 by
larspetrus
Class scope name resolution issue
bug
mypy got something wrong
priority-2-low
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#9991
opened Jan 29, 2021 by
hauntsaninja
Does not catch variable declared global/nonlocal after appearing in the same scope.
feature
topic-variable-scope
#13560
opened Aug 30, 2022 by
mrolle45
Use of undefined variable causes unrelated local class to leak scope
bug
mypy got something wrong
topic-variable-scope
#13024
opened Jun 26, 2022 by
denballakh
Type narrowing does not apply to default arguments in definition time
bug
mypy got something wrong
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#13087
opened Jul 7, 2022 by
PIG208
Annotation parsing incorrect when class scope defines same name as import
bug
mypy got something wrong
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#12414
opened Mar 21, 2022 by
PeterJCLaw
false-positive mypy got something wrong
topic-dataclasses
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
name-defined
regression with dataclasses and shadowing
bug
#12907
opened May 30, 2022 by
The-Compiler
Mypy misunderstands class-level namespace (spurious mypy got something wrong
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
Variable "module.Class.attribute" is not valid as a type
)
bug
#12570
opened Apr 12, 2022 by
gwk
Treat variable, declared global and assigned a value in a class or function, as a member of the module.
feature
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#12765
opened May 11, 2022 by
mrolle45
Does not report syntax error for global/nonlocal declaration after the name is used.
bug
mypy got something wrong
topic-variable-scope
#12747
opened May 8, 2022 by
mrolle45
Name in class def is resolved in enclosing function, instead of global, scope.
bug
mypy got something wrong
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#12764
opened May 10, 2022 by
mrolle45
Redefinition without reassignment doesn't check existing value
bug
mypy got something wrong
topic-variable-scope
#12866
opened May 25, 2022 by
Zeckie
New semanal: Spurious "no binding for nonlocal"
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
semantic-analyzer
Problems that happen during semantic analysis
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#7057
opened Jun 25, 2019 by
JelleZijlstra
mypy gives 'not defined' error for use after global declaration
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-1-normal
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
topic-variable-scope
#5732
opened Oct 4, 2018 by
onlined
ProTip!
Type g p on any issue or pull request to go back to the pull request listing page.