summaryrefslogtreecommitdiff
path: root/linuxnamespaces/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'linuxnamespaces/__init__.py')
-rw-r--r--linuxnamespaces/__init__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/linuxnamespaces/__init__.py b/linuxnamespaces/__init__.py
index c060e01..f2e54ce 100644
--- a/linuxnamespaces/__init__.py
+++ b/linuxnamespaces/__init__.py
@@ -246,11 +246,8 @@ def bind_mount(
source = AtLocation(source)
target = AtLocation(target)
try:
- # mypy does not know that os.fspath accepts AtLocation
- srcloc: str | bytes
- srcloc = os.fspath(source) # type: ignore
- tgtloc: str | bytes
- tgtloc = os.fspath(target) # type: ignore
+ srcloc = os.fspath(source)
+ tgtloc = os.fspath(target)
except ValueError:
otflags = OpenTreeFlags.OPEN_TREE_CLONE
if recursive: