Skip to content
Snippets Groups Projects
Commit 24b0628a authored by Krzysztof Mochocki's avatar Krzysztof Mochocki
Browse files

Fix type hinting on HiveList

parent 05bbd20a
No related branches found
No related tags found
No related merge requests found
......@@ -277,8 +277,11 @@ class UShareType(Uint64t):
HiveBaseModel = TypeVar("HiveBaseModel", bound=PreconfiguredBaseModel)
if TYPE_CHECKING:
HiveList = list
else:
class HiveList(ConstrainedList, Generic[HiveBaseModel]):
"""Some responses could return empty list, it should not raise any error. This type makes it possible"""
class HiveList(ConstrainedList, Generic[HiveBaseModel]):
"""Some responses could return empty list, it should not raise any error. This type makes it possible"""
min_items = 0
min_items = 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment