Skip to content

Commit

Permalink
Remove typing_extensions dependency
Browse files Browse the repository at this point in the history
Since Python 3.8 all used features from `typing_extensions` are also provided by the `typing` stdlib. Use those instead.
  • Loading branch information
maarten-ic committed Aug 23, 2024
1 parent 1209bb6 commit a7e7834
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions libmuscle/python/libmuscle/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import logging
import os
import sys
from typing import cast, Dict, List, Optional, Tuple, overload
# TODO: import from typing module when dropping support for python 3.7
from typing_extensions import Literal
from typing import cast, Dict, List, Literal, Optional, Tuple, overload

from ymmsl import (Identifier, Operator, SettingValue, Port, Reference,
Settings)
Expand Down
3 changes: 1 addition & 2 deletions libmuscle/python/libmuscle/mcp/tcp_transport_server.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import socket
import socketserver as ss
import threading
from typing import cast, List, Optional, Tuple
from typing_extensions import Type
from typing import cast, List, Optional, Tuple, Type

import psutil

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
'psutil>=5.0.0',
"numpy>=1.22",
'qcg-pilotjob==0.13.1',
'typing_extensions>=4.4.0,<5',
'ymmsl>=0.13.0,<0.14' # Also in CI, update there as well
],
extras_require={
Expand Down

0 comments on commit a7e7834

Please sign in to comment.