Skip to content

Commit c051f23

Browse files
committed
fix codestyle and typecheck errors
1 parent 54d3374 commit c051f23

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

fs/_pathcompat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# mypy: ignore-errors
12
try:
23
from os.path import commonpath
34
except ImportError:

fs/wrap.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ def touch(self, path):
325325
def getmeta(self, namespace="standard"):
326326
# type: (Text) -> Mapping[Text, object]
327327
self.check()
328-
meta = self.delegate_fs().getmeta(namespace=namespace)
329-
meta["read_only"] = True
330-
meta["supports_rename"] = False
328+
meta = dict(self.delegate_fs().getmeta(namespace=namespace))
329+
meta.update(read_only=True, supports_rename=True)
331330
return meta

0 commit comments

Comments
 (0)