Skip to content

Commit

Permalink
Mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Nov 14, 2024
1 parent 6080a6f commit 80e099c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fiscalyear/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import calendar
import contextlib
import datetime
from typing import Iterator, Optional, Union, cast
from typing import Iterator, List, Optional, Union, cast

__author__ = "Adam J. Stewart"
__version__ = "0.4.0"
Expand Down Expand Up @@ -179,6 +179,8 @@ def _check_quarter(quarter: int) -> int:
class _Hashable:
"""A class to make Fiscal objects hashable"""

__slots__: List[str]

def __hash__(self) -> int:
"""Unique hash of an object instance based on __slots__
Expand Down

0 comments on commit 80e099c

Please sign in to comment.