8000 Fix new style union syntax in type aliases by JukkaL · Pull Request #14008 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Fix new style union syntax in type aliases #14008

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

Merged
merged 14 commits into from
Nov 7, 2022
Prev Previous commit
Fix test case
  • Loading branch information
JukkaL committed Nov 7, 2022
commit de9c3915d2313f3ae858ff99f511dbff30a4bfaf
4 changes: 4 additions & 0 deletions test-data/unit/lib-stub/_decimal.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Very simplified decimal stubs for use in tests

class Decimal:
def __new__(cls, value: str = ...) -> Decimal: ...
5 changes: 2 additions & 3 deletions test-data/unit/lib-stub/decimal.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Very simplified datetime stubs for use in tests
# Very simplified decimal stubs for use in tests

class Decimal:
def __new__(cls, value: str = ...) -> Decimal: ...
from _decimal import *
0