Skip to content

Commit

Permalink
chore(internal): bump pyright (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed May 29, 2024
1 parent b8ad505 commit b4c595f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pydantic==2.7.1
# via lithic
pydantic-core==2.18.2
# via pydantic
pyright==1.1.359
pyright==1.1.364
pytest==7.1.1
# via pytest-asyncio
pytest-asyncio==0.21.1
Expand Down
3 changes: 1 addition & 2 deletions src/lithic/_utils/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import sniffio

from .._types import Headers, NotGiven, FileTypes, NotGivenOr, HeadersLike
from .._types import NotGiven, FileTypes, NotGivenOr, HeadersLike
from .._compat import parse_date as parse_date, parse_datetime as parse_datetime

_T = TypeVar("_T")
Expand Down Expand Up @@ -370,7 +370,6 @@ def file_from_path(path: str) -> FileTypes:
def get_required_header(headers: HeadersLike, header: str) -> str:
lower_header = header.lower()
if isinstance(headers, Mapping):
headers = cast(Headers, headers)
for k, v in headers.items():
if k.lower() == lower_header and isinstance(v, str):
return v
Expand Down

0 comments on commit b4c595f

Please sign in to comment.