Skip to content

Commit

Permalink
Fix incorrect type hint
Browse files Browse the repository at this point in the history
Update precommit config
  • Loading branch information
mcarans committed Jan 31, 2024
1 parent d9d6a64 commit 752bab3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
43 changes: 23 additions & 20 deletions requirements.txt
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --all-extras --output-file=requirements.txt --resolver=backtracking pyproject.toml
# pip-compile --all-extras --output-file=requirements.txt pyproject.toml
#
annotated-types==0.6.0
# via pydantic
Expand All @@ -27,15 +27,17 @@ click==8.1.7
# via typer
colorama==0.4.6
# via typer
coverage[toml]==7.4.0
# via pytest-cov
cryptography==41.0.7
coverage[toml]==7.4.1
# via
# coverage
# pytest-cov
cryptography==42.0.2
# via pyopenssl
defopt==6.4.0
# via hdx-python-api (pyproject.toml)
distlib==0.3.8
# via virtualenv
dnspython==2.4.2
dnspython==2.5.0
# via email-validator
docopt==0.6.2
# via
Expand All @@ -49,7 +51,7 @@ et-xmlfile==1.1.0
# via openpyxl
filelock==3.13.1
# via virtualenv
frictionless==5.16.0
frictionless==5.16.1
# via hdx-python-utilities
hdx-python-country==3.6.4
# via hdx-python-api (pyproject.toml)
Expand Down Expand Up @@ -77,7 +79,7 @@ jinja2==3.1.3
# via frictionless
jsonlines==4.0.0
# via hdx-python-utilities
jsonpath-ng==1.6.0
jsonpath-ng==1.6.1
# via libhxl
jsonschema==4.17.3
# via
Expand All @@ -95,7 +97,7 @@ markdown-it-py==3.0.0
# via rich
marko==2.0.2
# via frictionless
markupsafe==2.1.3
markupsafe==2.1.4
# via jinja2
mdurl==0.1.2
# via markdown-it-py
Expand All @@ -111,9 +113,9 @@ packaging==23.2
# via pytest
petl==1.7.14
# via frictionless
platformdirs==4.1.0
platformdirs==4.2.0
# via virtualenv
pluggy==1.3.0
pluggy==1.4.0
# via pytest
ply==3.11
# via
Expand All @@ -129,23 +131,23 @@ pyasn1==0.5.1
# ndg-httpsclient
pycparser==2.21
# via cffi
pydantic==2.5.3
pydantic==2.6.0
# via
# frictionless
# inflect
pydantic-core==2.14.6
pydantic-core==2.16.1
# via pydantic
pygments==2.17.2
# via rich
pyopenssl==23.3.0
pyopenssl==24.0.0
# via
# hdx-python-api (pyproject.toml)
# ndg-httpsclient
pyphonetics==0.5.3
# via hdx-python-country
pyrsistent==0.20.0
# via jsonschema
pytest==7.4.4
pytest==8.0.0
# via
# hdx-python-api (pyproject.toml)
# pytest-cov
Expand All @@ -158,7 +160,7 @@ python-dateutil==2.8.2
# libhxl
python-io-wrapper==0.3.1
# via libhxl
python-slugify==8.0.1
python-slugify==8.0.2
# via
# ckanapi
# frictionless
Expand All @@ -178,7 +180,7 @@ requests==2.31.0
# hdx-python-api (pyproject.toml)
# libhxl
# requests-file
requests-file==1.5.1
requests-file==2.0.0
# via hdx-python-utilities
rfc3986==2.0.0
# via frictionless
Expand All @@ -198,7 +200,6 @@ six==1.16.0
# isodate
# pockets
# python-dateutil
# requests-file
# sphinxcontrib-napoleon
sphinxcontrib-napoleon==0.7
# via defopt
Expand All @@ -213,19 +214,21 @@ tabulate==0.9.0
text-unidecode==1.3
# via python-slugify
typer[all]==0.9.0
# via frictionless
# via
# frictionless
# typer
typing-extensions==4.9.0
# via
# frictionless
# inflect
# pydantic
# pydantic-core
# typer
unidecode==1.3.7
unidecode==1.3.8
# via
# libhxl
# pyphonetics
urllib3==2.1.0
urllib3==2.2.0
# via
# libhxl
# requests
Expand Down
6 changes: 4 additions & 2 deletions src/hdx/data/showcase.py
Expand Up @@ -245,7 +245,8 @@ def get_datasets(self) -> List["Dataset"]: # noqa: F821
return datasets

def _get_showcase_dataset_dict(
self, dataset: Union["Dataset", Dict, str] # noqa: F821
self,
dataset: Union["Dataset", Dict, str], # noqa: F821
) -> Dict:
"""Get showcase dataset dict
Expand Down Expand Up @@ -321,7 +322,8 @@ def add_datasets(
return alldatasetsadded

def remove_dataset(
self, dataset: Union["Dataset", Dict, str] # noqa: F821
self,
dataset: Union["Dataset", Dict, str], # noqa: F821
) -> None:
"""Remove a dataset
Expand Down

0 comments on commit 752bab3

Please sign in to comment.