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
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ bedrock = [

[dependency-groups]
dev = [
"mypy==1.17",
"mypy==2.3.1",
"pytest>=9.0.3",
"pytest-asyncio>=1.4.0",
"ruff",
Expand Down Expand Up @@ -249,6 +249,11 @@ module = "black.files.*"
ignore_errors = true
ignore_missing_imports = true

# Preserve the existing _files.py exclusion when mypy follows its imports.
[[tool.mypy.overrides]]
module = "openai._files"
follow_imports = "silent"

[tool.ruff]
extend-exclude = ["tests/respx2", "src/openai/_vendor"]
line-length = 120
Expand Down
2 changes: 1 addition & 1 deletion src/openai/_utils/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .._types import StrBytesIntFloat
from ._datetime_parse import parse_date as _parse_date, parse_datetime as _parse_datetime

_LITERAL_TYPES = {Literal, typing_extensions.Literal}
_LITERAL_TYPES: set[object] = {Literal, typing_extensions.Literal}


def get_args(tp: type[Any]) -> tuple[Any, ...]:
Expand Down
Loading
Loading