You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes to support running the client under future annotations
In order to support self-referencial type annotations in python 3.11 (via from __future__ import annotations )
There are a few changes needed for code to run.
The main scenarios are things like:
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@DataClass
class PagedResults:
current_page: int = 0
total_results: int = 0
page_size: int = 0
T = TypeVar('T')
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@DataClass
class PagedResults1(Generic[T], PagedResults):
results: Optional[List[T]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@DataClass
class AResponseWithPagedResults:
paged_results: Optional[PagedResults1[SomeDto]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@DataClass
class HierarchicalDto:
children: Optional[List[HierarchicalDto]] = None
0 commit comments