Show More
@@ -14,7 +14,11 import re | |||
|
14 | 14 | import stat |
|
15 | 15 | import typing |
|
16 | 16 | |
|
17 |
from typing import |
|
|
17 | from typing import ( | |
|
18 | Generator, | |
|
19 | List, | |
|
20 | Optional, | |
|
21 | ) | |
|
18 | 22 | |
|
19 | 23 | from .i18n import _ |
|
20 | 24 | from .thirdparty import attr |
@@ -1135,11 +1139,13 class _fncachevfs(vfsmod.proxyvfs): | |||
|
1135 | 1139 | self.fncache.add(path) |
|
1136 | 1140 | return self.vfs(encoded, mode, *args, **kw) |
|
1137 | 1141 | |
|
1138 | def join(self, path): | |
|
1142 | def join(self, path: Optional[bytes], *insidef: bytes) -> bytes: | |
|
1143 | insidef = (self.encode(f) for f in insidef) | |
|
1144 | ||
|
1139 | 1145 | if path: |
|
1140 | return self.vfs.join(self.encode(path)) | |
|
1146 | return self.vfs.join(self.encode(path), *insidef) | |
|
1141 | 1147 | else: |
|
1142 | return self.vfs.join(path) | |
|
1148 | return self.vfs.join(path, *insidef) | |
|
1143 | 1149 | |
|
1144 | 1150 | def register_file(self, path): |
|
1145 | 1151 | """generic hook point to lets fncache steer its stew""" |
General Comments 0
You need to be logged in to leave comments.
Login now