Skip to content

Commit

Permalink
[PR] #299 from jelly: Make typing-extensions optional
Browse files Browse the repository at this point in the history
Make typing_extensions only required for 3.7
  • Loading branch information
hykilpikonna authored May 26, 2024
2 parents 109d7d2 + 359226c commit fc98d61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion hyfetch/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from typing_extensions import Literal
try:
from typing import Literal
except ImportError:
from typing_extensions import Literal

AnsiMode = Literal['default', 'ansi', '8bit', 'rgb']
LightDark = Literal['light', 'dark']
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
include_package_data=True,
install_requires=[
# Universal dependencies
'setuptools', 'typing_extensions',
'setuptools', 'typing_extensions; python_version < "3.8"',

# Windows dependencies
'psutil ; platform_system=="Windows"',
Expand Down

0 comments on commit fc98d61

Please sign in to comment.