Skip to content

Commit

Permalink
Fixed IntEnum error when formatting as int (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
dieudonneWillems authored Mar 22, 2023
1 parent a8787af commit 7d9958d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fix crash in flake8 plugin on Python 3.11

## [0.1.3] - 2023-03-13

### Added
Expand Down
2 changes: 1 addition & 1 deletion oida/flake8.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def run(self) -> Generator[tuple[int, int, str, Type[Any]], None, None]:
)
checker.visit(self._tree)
for line, col, code, message in checker.violations:
yield line, col, f"ODA{code:03d} {message}", type(self)
yield line, col, f"ODA{code.value:03d} {message}", type(self)

0 comments on commit 7d9958d

Please sign in to comment.