Upgrade pyright to 1.1.305 (#4042)

This commit is contained in:
Aarni Koskela 2023-05-02 21:20:35 +03:00 committed by GitHub
parent 2be3ea1cc7
commit 4d629f04cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 4 deletions

View File

@ -49,6 +49,7 @@ No changes to highlight.
## Testing and Infrastructure Changes:
- CI: Simplified Python CI workflow by [@akx](https://github.com/akx) in [PR 3982](https://github.com/gradio-app/gradio/pull/3982)
- Upgrade pyright to 1.1.305 by [@akx](https://github.com/akx) in [PR 4042](https://github.com/gradio-app/gradio/pull/4042)
## Breaking Changes:

View File

@ -2,5 +2,5 @@ black==22.6.0
pytest-asyncio
pytest==7.1.2
ruff==0.0.263
pyright==1.1.298
pyright==1.1.305
gradio

View File

@ -418,7 +418,7 @@ class HuggingFaceDatasetSaver(FlaggingCallback):
row.append(Path(deserialized).name)
# If component is eligible for a preview, add the URL of the file
if isinstance(component, tuple(FILE_PREVIEW_TYPES)):
if isinstance(component, tuple(FILE_PREVIEW_TYPES)): # type: ignore
for _component, _type in FILE_PREVIEW_TYPES.items():
if isinstance(component, _component):
features[label + " file"] = {"_type": _type}

View File

@ -163,7 +163,7 @@ pygments==2.12.0
# via ipython
pyparsing==3.0.9
# via packaging
pyright==1.1.298
pyright==1.1.305
pyrsistent==0.18.1
# via jsonschema
pytest==7.1.2

View File

@ -168,7 +168,7 @@ python-dateutil==2.8.2
# via
# botocore
# pandas
pyright==1.1.298
pyright==1.1.305
pytz==2022.1
# via pandas
pywavelets==1.3.0