From 80e099cac481b003f6f2b74c82521ccc622d045a Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Thu, 14 Nov 2024 21:43:06 +0100 Subject: [PATCH] Mypy fix --- fiscalyear/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fiscalyear/__init__.py b/fiscalyear/__init__.py index 83b4d91..13b9223 100644 --- a/fiscalyear/__init__.py +++ b/fiscalyear/__init__.py @@ -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" @@ -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__