From 0e4649c9e22e35c27e26992f7f76f856768f9991 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Sun, 29 Dec 2024 19:04:50 -0800 Subject: [PATCH] Enable strict_bytes by default --- mypy/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy/options.py b/mypy/options.py index eb3d389b5d8a5..4d79d6b2d4393 100644 --- a/mypy/options.py +++ b/mypy/options.py @@ -217,7 +217,7 @@ def __init__(self) -> None: self.strict_equality = False # Disable treating bytearray and memoryview as subtypes of bytes - self.strict_bytes = False + self.strict_bytes = True # Deprecated, use extra_checks instead. self.strict_concatenate = False