Commit f2607f54

Stainless Bot <dev+git@stainlessapi.com>
2024-11-27 22:04:44
chore(internal): exclude mypy from running on tests (#1899)
1 parent 3ad5999
Changed files (1)
mypy.ini
@@ -5,7 +5,10 @@ show_error_codes = True
 # Exclude _files.py and _logs.py because mypy isn't smart enough to apply
 # the correct type narrowing and as this is an internal module
 # it's fine to just use Pyright.
-exclude = ^(src/openai/_files\.py|src/openai/_utils/_logs\.py|_dev/.*\.py)$
+#
+# We also exclude our `tests` as mypy doesn't always infer
+# types correctly and Pyright will still catch any type errors.
+exclude = ^(src/openai/_files\.py|src/openai/_utils/_logs\.py|_dev/.*\.py|tests/.*)$
 
 strict_equality = True
 implicit_reexport = True