mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-21 15:54:26 +01:00
Rename bfxapi/rest/typings.py to bfxapi/rest/types.py.
This commit is contained in:
@@ -4,7 +4,7 @@ from typing import Generic, TypeVar, Iterable, Optional, List, Tuple, Any, cast
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
class _Typing(object):
|
||||
class _Type(object):
|
||||
def __init__(self, **kwargs):
|
||||
for key, value in kwargs.items():
|
||||
self.__setattr__(key,value)
|
||||
@@ -24,4 +24,4 @@ class _Serializer(Generic[T]):
|
||||
yield label, args[index]
|
||||
|
||||
def parse(self, *values: Any, skip: Optional[List[str]] = None) -> T:
|
||||
return cast(T, _Typing(**dict(self._serialize(*values, skip=skip))))
|
||||
return cast(T, _Type(**dict(self._serialize(*values, skip=skip))))
|
||||
Reference in New Issue
Block a user