@@ -10,13 +10,8 @@ if sys.version_info >= (3, 11):
10
10
def open_resource (self , resource : str ) -> IO [bytes ]: ...
11
11
@abstractmethod
12
12
def resource_path (self , resource : str ) -> str : ...
13
- if sys .version_info >= (3 , 10 ):
14
- @abstractmethod
15
- def is_resource (self , path : str ) -> bool : ...
16
- else :
17
- @abstractmethod
18
- def is_resource (self , name : str ) -> bool : ...
19
-
13
+ @abstractmethod
14
+ def is_resource (self , path : str ) -> bool : ...
20
15
@abstractmethod
21
16
def contents (self ) -> Iterator [str ]: ...
22
17
@@ -28,12 +23,8 @@ if sys.version_info >= (3, 11):
28
23
def is_file (self ) -> bool : ...
29
24
@abstractmethod
30
25
def iterdir (self ) -> Iterator [Traversable ]: ...
31
- if sys .version_info >= (3 , 11 ):
32
- @abstractmethod
33
- def joinpath (self , * descendants : str ) -> Traversable : ...
34
- else :
35
- @abstractmethod
36
- def joinpath (self , child : str , / ) -> Traversable : ...
26
+ @abstractmethod
27
+ def joinpath (self , * descendants : str ) -> Traversable : ...
37
28
38
29
# The documentation and runtime protocol allows *args, **kwargs arguments,
39
30
# but this would mean that all implementers would have to support them,
@@ -47,12 +38,7 @@ if sys.version_info >= (3, 11):
47
38
@property
48
39
@abstractmethod
49
40
def name (self ) -> str : ...
50
- if sys .version_info >= (3 , 10 ):
51
- def __truediv__ (self , child : str , / ) -> Traversable : ...
52
- else :
53
- @abstractmethod
54
- def __truediv__ (self , child : str , / ) -> Traversable : ...
55
-
41
+ def __truediv__ (self , child : str , / ) -> Traversable : ...
56
42
@abstractmethod
57
43
def read_bytes (self ) -> bytes : ...
58
44
@abstractmethod
0 commit comments