Skip to content

Commit

Permalink
🔧 MAINTAIN: Remove typing_extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jan 14, 2022
1 parent 33d15bf commit 64c1584
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
default_language_version:
python: python3.8

ci:
autoupdate_schedule: monthly
autofix_prs: true
Expand All @@ -21,7 +24,7 @@ repos:
rev: v2.25.0
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py38-plus]

- repo: https://github.com/psf/black
rev: 21.7b0
Expand Down
7 changes: 1 addition & 6 deletions aiida_firecrest/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import os
import posixpath
from pathlib import Path, PurePosixPath
from typing import Any, List, NamedTuple, Optional, Tuple, Type, Union
from typing import Any, List, NamedTuple, Optional, Tuple, Type, TypedDict, Union

import firecrest as f7t
from aiida.cmdline.params.options.overridable import OverridableOption
Expand All @@ -19,11 +19,6 @@
from click.types import ParamType
from firecrest.FirecrestException import HeaderException

try:
from typing import TypedDict # type: ignore
except ImportError:
from typing_extensions import TypedDict


class ValidAuthOption(TypedDict, total=False): # type: ignore
option: Optional[OverridableOption] # existing option
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ dependencies = [
"click",
"pyfirecrest@git+git://github.com/ekouts/pyfirecrest@8f260c3a43220cf1304d679a33457e8eb096c5a1#egg=pyfirecrest",
"pyyaml",
"typing-extensions;python_version<'3.8'",
]

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ envlist = py38
[testenv]
usedevelop = true

[testenv:py{37,38,39,310}]
[testenv:py{38,39,310}]
description = Run unit tests with this Python version
extras =
dev
Expand Down

0 comments on commit 64c1584

Please sign in to comment.