Skip to content
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