Skip to content

Commit

Permalink
Add extra typing annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Nov 3, 2023
1 parent f9e139e commit 894f4f0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pint/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from dataclasses import dataclass
from dataclasses import fields as dc_fields

from typing import Any, Optional
from typing import Any, Optional, ClassVar

from ._typing import Magnitude

Expand All @@ -24,10 +24,8 @@
class Converter:
"""Base class for value converters."""

# list[type[Converter]]
_subclasses = []
# dict[frozenset[str], type[Converter]]
_param_names_to_subclass = {}
_subclasses: ClassVar[list[type[Converter]]] = []
_param_names_to_subclass: ClassVar[dict[frozenset[str], type[Converter]]] = {}

@property
def is_multiplicative(self) -> bool:
Expand Down

0 comments on commit 894f4f0

Please sign in to comment.