Skip to content

Commit

Permalink
Fix an error from mypy
Browse files Browse the repository at this point in the history
- looks like a bug in mypy
  • Loading branch information
mrbean-bremen committed Dec 24, 2024
1 parent 1701723 commit 9819260
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyfakefs/fake_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2902,7 +2902,8 @@ def makedirs(
if not exist_ok or not isinstance(self.resolve(dir_name), FakeDirectory):
if self.is_windows_fs and e.errno == errno.ENOTDIR:
e.errno = errno.ENOENT
self.raise_os_error(e.errno, e.filename)
# mypy thinks that errno may be None
self.raise_os_error(cast(int, e.errno), e.filename)

def _is_of_type(
self,
Expand Down

0 comments on commit 9819260

Please sign in to comment.