diff options
Diffstat (limited to 'linuxnamespaces')
-rw-r--r-- | linuxnamespaces/syscalls.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linuxnamespaces/syscalls.py b/linuxnamespaces/syscalls.py index 8f5e25b..de1b87e 100644 --- a/linuxnamespaces/syscalls.py +++ b/linuxnamespaces/syscalls.py @@ -224,6 +224,9 @@ class MountFlags(enum.IntFlag): parts: list[str] = [] remain = self for val, text in MountFlags.__flagvals: + # Older mypy think MountFlags.__flagvals and thus text was of type + # MountFlags. + assert isinstance(text, str) if remain & val == val: parts.insert(0, text) remain &= ~val |