Skip to content

Commit

Permalink
Fix TypeAlias Import / Update Requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinyzu committed Apr 6, 2024
1 parent 83d7638 commit 39d1cbf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
8 changes: 7 additions & 1 deletion cdp_patches/input/async_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
import re
import time
import warnings
from typing import Any, Generator, Literal, Optional, TypeAlias, Union
import sys
from typing import Any, Generator, Literal, Optional, Union

if sys.version_info.minor >= 10:
from typing import TypeAlias
else:
TypeAlias = "TypeAlias"

from cdp_patches import is_windows

Expand Down
8 changes: 7 additions & 1 deletion cdp_patches/input/sync_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
import re
import time
import warnings
from typing import Literal, Optional, TypeAlias, Union
import sys
from typing import Literal, Optional, Union

if sys.version_info.minor >= 10:
from typing import TypeAlias
else:
TypeAlias = "TypeAlias"

from cdp_patches import is_windows

Expand Down
2 changes: 0 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ mypy==1.9.0
types-setuptools==69.2.0.20240317
black==24.3.0
isort==5.13.2
pywinauto==0.6.8
numpy==1.26.4
playwright==1.42.0
selenium==4.18.1
selenium_driverless==1.8.0.2
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
numpy==1.26.4
pywinauto==0.6.8
numpy==1.26.4
python-libxdo==0.1.2a1
python-xlib==0.33

0 comments on commit 39d1cbf

Please sign in to comment.