Skip to content

Commit

Permalink
Adding typing-extensions dep for py36,37 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhoyer committed Jan 31, 2023
1 parent ef09697 commit f220439
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion netifaces/defs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from enum import IntEnum
from typing import Dict, List, Literal, Tuple, Union
from typing import Dict, List, Tuple, Union

from typing_extensions import Literal

AF_UNSPEC = 0
AF_UNIX = 1
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "0.0.12"
requires-python = ">=3.7"
readme = "README.md"
license = {file = "LICENSE"}
dependencies = ['typing-extensions']
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
Expand Down

0 comments on commit f220439

Please sign in to comment.