Describe the bug
The ContractUploadRequest class uses a literal dict to type hints the input_fields_metadata parameter. Literal type hints are supported from Python 3.9 onward.
To Reproduce
Steps to reproduce the behavior:
Setup Python 3.8 or lower environment
import fireblocks_sdk
See an error as
input_fields_metadata: Optional[dict[str, FieldMetadata]] = None,
TypeError: 'type' object is not subscriptable
Expected behavior
Able to import fireblocks_sdk on Python >= 3.6
Versions (please complete the following information):
Python Version: 3.8.8
fireblocks-sdk version: v2.2.1
Additional context
The bug was introduced in PR fireblocks/fireblocks-sdk-py#146
Describe the bug The
ContractUploadRequest
class uses a literaldict
to type hints theinput_fields_metadata
parameter. Literal type hints are supported from Python 3.9 onward.To Reproduce Steps to reproduce the behavior:
import fireblocks_sdk
Expected behavior Able to import
fireblocks_sdk
on Python >= 3.6Versions (please complete the following information):
Additional context The bug was introduced in PR fireblocks/fireblocks-sdk-py#146