Skip to content
Merged
Prev Previous commit
Next Next commit
Fix formatting for black
  • Loading branch information
emmatyping committed Aug 18, 2022
commit d750371eb5ae77ff56e7eda6391cee2cfa783275
6 changes: 4 additions & 2 deletions mypyc/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
# Size of size_t, if configured.
SIZEOF_SIZE_T: Final = sysconfig.get_config_var("SIZEOF_SIZE_T") or math.log2(sys.maxsize)

IS_32_BIT_PLATFORM: Final = sys.maxsize < (1 << 31) if SIZEOF_SIZE_T is None else int(SIZEOF_SIZE_T) == 4
IS_32_BIT_PLATFORM: Final = (
sys.maxsize < (1 << 31) if SIZEOF_SIZE_T is None else int(SIZEOF_SIZE_T) == 4
)

PLATFORM_SIZE = 4 if IS_32_BIT_PLATFORM else 8

Expand All @@ -47,7 +49,7 @@
IS_MIXED_32_64_BIT_BUILD: Final = sys.platform in ["darwin"] and sys.version_info < (3, 6)

# Maximum value for a short tagged integer.
MAX_SHORT_INT: Final = sys.maxsize >> 1 if SIZEOF_SIZE_T is None else 2**int(SIZEOF_SIZE_T)
MAX_SHORT_INT: Final = sys.maxsize >> 1 if SIZEOF_SIZE_T is None else 2 ** int(SIZEOF_SIZE_T)

# Maximum value for a short tagged integer represented as a C integer literal.
#
Expand Down