Fix compatibility with python < 3.8 by switching from typing.Final to typing_extensions.Final

This commit is contained in:
seth
2021-06-07 23:07:36 -04:00
committed by Jennifer Taylor
parent 4a18f43253
commit 061ff796f6
11 changed files with 21 additions and 12 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import copy
import struct
from typing import Any, Dict, Final, List, Optional, Union
from typing import Any, Dict, List, Optional, Union
from typing_extensions import Final
# Hack to get around mypy's lack of scoping on types.
_renamed_float = float