Skip to content

Commit

Permalink
Fix the test fixture
Browse files Browse the repository at this point in the history
Summary: Generate test fixtures

Differential Revision: D64905635

fbshipit-source-id: 60f28a185e9ab4a311228ab5e4306c9d7993dba1
  • Loading branch information
yoney authored and facebook-github-bot committed Oct 24, 2024
1 parent 1c4a3ff commit eac86de
Show file tree
Hide file tree
Showing 8 changed files with 253 additions and 253 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,24 +124,24 @@ class Containers(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compati


@property
def StringToI64Map(self) -> _typing.MutableMapping[str, int]: ...
def StringToI64Map(self) -> _fbthrift_python_mutable_containers.MutableMap[str, int]: ...
@StringToI64Map.setter
def StringToI64Map(self, value: _typing.MutableMapping[str, int]): ...
def StringToI64Map(self, value: _fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper): ...

def __init__(
self, *,
I32List: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
StringSet: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper]=...,
StringToI64Map: _typing.Optional[_typing.MutableMapping[str, int]]=...
StringToI64Map: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...
) -> None: ...

def __call__(
self, *,
I32List: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
StringSet: _typing.Optional[_fbthrift_python_mutable_containers.MutableSet[str] | _fbthrift_python_mutable_types._ThriftSetWrapper]=...,
StringToI64Map: _typing.Optional[_typing.MutableMapping[str, int]]=...
StringToI64Map: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[str, int] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...
) -> _typing.Self: ...
def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableSet[str], _typing.MutableMapping[str, int]]]]: ...
def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[_fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableSet[str], _fbthrift_python_mutable_containers.MutableMap[str, int]]]]: ...
def _to_python(self) -> "test.fixtures.basic.module.thrift_types.Containers": ... # type: ignore
def _to_mutable_python(self) -> _typing.Self: ...
def _to_py3(self) -> "test.fixtures.basic.module.types.Containers": ... # type: ignore
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ class ComplexUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compat
stringValue: str = ...

@property
def typedefValue(self) -> _typing.MutableMapping[int, str]: ...
def typedefValue(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ...
@typedefValue.setter
def typedefValue(self, value: _typing.MutableMapping[int, str]): ...
def typedefValue(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ...

stringRef: str = ...
def __init__(
Expand All @@ -64,7 +64,7 @@ class ComplexUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compat
intListValue: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[int] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
stringListValue: _typing.Optional[_fbthrift_python_mutable_containers.MutableList[str] | _fbthrift_python_mutable_types._ThriftListWrapper]=...,
stringValue: _typing.Optional[str]=...,
typedefValue: _typing.Optional[_typing.MutableMapping[int, str]]=...,
typedefValue: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...,
stringRef: _typing.Optional[str]=...
) -> None: ...

Expand All @@ -78,7 +78,7 @@ class ComplexUnion(_fbthrift_python_mutable_types.MutableUnion, _fbthrift_compat
typedefValue: ComplexUnion.Type = ...
stringRef: ComplexUnion.Type = ...

fbthrift_current_value: _typing.Final[_typing.Union[None, int, _fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableList[str], str, _typing.MutableMapping[int, str], str]]
fbthrift_current_value: _typing.Final[_typing.Union[None, int, _fbthrift_python_mutable_containers.MutableList[int], _fbthrift_python_mutable_containers.MutableList[str], str, _fbthrift_python_mutable_containers.MutableMap[int, str], str]]
fbthrift_current_field: _typing.Final[FbThriftUnionFieldEnum]
def get_type(self) -> FbThriftUnionFieldEnum:...
def _to_python(self) -> "module.thrift_types.ComplexUnion": ... # type: ignore
Expand Down Expand Up @@ -162,24 +162,24 @@ class Val(_fbthrift_python_mutable_types.MutableStruct, _fbthrift_compatible_wit
intVal: int = ...

@property
def typedefValue(self) -> _typing.MutableMapping[int, str]: ...
def typedefValue(self) -> _fbthrift_python_mutable_containers.MutableMap[int, str]: ...
@typedefValue.setter
def typedefValue(self, value: _typing.MutableMapping[int, str]): ...
def typedefValue(self, value: _fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper): ...

def __init__(
self, *,
strVal: _typing.Optional[str]=...,
intVal: _typing.Optional[int]=...,
typedefValue: _typing.Optional[_typing.MutableMapping[int, str]]=...
typedefValue: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...
) -> None: ...

def __call__(
self, *,
strVal: _typing.Optional[str]=...,
intVal: _typing.Optional[int]=...,
typedefValue: _typing.Optional[_typing.MutableMapping[int, str]]=...
typedefValue: _typing.Optional[_fbthrift_python_mutable_containers.MutableMap[int, str] | _fbthrift_python_mutable_types._ThriftMapWrapper]=...
) -> _typing.Self: ...
def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[str, int, _typing.MutableMapping[int, str]]]]: ...
def __iter__(self) -> _typing.Iterator[_typing.Tuple[str, _typing.Union[str, int, _fbthrift_python_mutable_containers.MutableMap[int, str]]]]: ...
def _to_python(self) -> "module.thrift_types.Val": ... # type: ignore
def _to_mutable_python(self) -> _typing.Self: ...
def _to_py3(self) -> "module.types.Val": ... # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ name: str = ...

multi_line_string: str = ...

states: _typing.List[_typing.MutableMapping[str, int]] = ...
states: _typing.List[_fbthrift_python_mutable_containers.MutableMap[str, int]] = ...

x: float = ...

Expand Down
Loading

0 comments on commit eac86de

Please sign in to comment.