Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repos:
language: python
additional_dependencies: [pygments, restructuredtext_lint]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
rev: v1.20.0
hooks:
- id: mypy
files: ^(src/)
Expand Down
2 changes: 2 additions & 0 deletions src/barril/units/_quantity.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ def __init__(
else:
self._unknown_unit_caption = ""

self._composing_categories: str | tuple[Any, ...]

if category.__class__ is OrderedDict:
assert unit is None
self._category_to_unit_and_exps = category
Expand Down