Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate
Browse files Browse the repository at this point in the history
updates:
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](PyCQA/flake8@6.0.0...6.1.0)

- fixed flake8 finding
  • Loading branch information
pre-commit-ci[bot] authored and mrbean-bremen committed Aug 1, 2023
1 parent 1c3e006 commit 4fddfa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
language: python
files: \.py$
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
language_version: python3
Expand Down
2 changes: 1 addition & 1 deletion pyfakefs/fake_filesystem_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ def needs_patch(self, name: str) -> bool:
if name not in self.modules:
self._loaded_module_names.add(name)
return False
if name in sys.modules and type(sys.modules[name]) == self.modules[name]:
if name in sys.modules and type(sys.modules[name]) is self.modules[name]:
return False
return True

Expand Down

0 comments on commit 4fddfa3

Please sign in to comment.