Skip to content

Fix dmypy on windows when compiled with mypyc #6365

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 1 commit into from
Feb 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mypy/bogus_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

# This won't ever be true at runtime, but we consider it true during
# mypyc compilations.
if sys.platform == 'mypyc':
MYPYC = False
if MYPYC:
Bogus = FlexibleAlias[T, Any]
else:
Bogus = FlexibleAlias[T, T]
3 changes: 1 addition & 2 deletions mypy_bootstrap.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ disallow_any_unimported = True
warn_redundant_casts = True
warn_unused_configs = True
show_traceback = True
# Set the platform to something nonsense to signal to make Bogus = Any.
platform = mypyc
always_true = MYPYC
1 change: 1 addition & 0 deletions mypy_self_check.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ disallow_any_unimported = True
warn_redundant_casts = True
warn_unused_configs = True
show_traceback = True
always_false = MYPYC