Skip to content

Commit

Permalink
fixes underspecified typing_extensions dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Kircheneer committed Oct 19, 2023
1 parent cbb177a commit 2c76036
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 100 deletions.
7 changes: 6 additions & 1 deletion diffsync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
import sys
from inspect import isclass
from typing import Callable, ClassVar, Dict, List, Optional, Tuple, Type, Union, Any, Set
from typing_extensions import Self

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self

from pydantic import BaseModel, PrivateAttr
import structlog # type: ignore
Expand Down
107 changes: 8 additions & 99 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ types-redis = "*"
pytest-redis = "^2.4.0"
types-requests = "^2.28.11.15"
types-python-slugify = "^8.0.0.1"
# typing.Self introduced in 3.11
typing-extensions = { version = ">=4.0.1", python = "<3.11" }

[tool.black]
line-length = 120
Expand Down

0 comments on commit 2c76036

Please sign in to comment.