diff options
| author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-05-30 22:58:12 +0200 |
|---|---|---|
| committer | John Villalovos <john@sodarock.com> | 2022-06-25 18:23:48 -0700 |
| commit | 0f2a602d3a9d6579f5fdfdf945a236ae44e93a12 (patch) | |
| tree | 57ceaafb384e11231b22890e4fc8a3fd4187c3a6 /tests | |
| parent | 22ae1016f39256b8e2ca02daae8b3c7130aeb8e6 (diff) | |
| download | gitlab-0f2a602d3a9d6579f5fdfdf945a236ae44e93a12.tar.gz | |
refactor: remove no-op id argument in GetWithoutIdMixin
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/meta/test_ensure_type_hints.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/meta/test_ensure_type_hints.py b/tests/meta/test_ensure_type_hints.py index 10f945c..f55ca45 100644 --- a/tests/meta/test_ensure_type_hints.py +++ b/tests/meta/test_ensure_type_hints.py @@ -70,13 +70,11 @@ from typing import Any, cast, Union" """ GET_WITHOUT_ID_METHOD_TEMPLATE = """ -def get( - self, id: Optional[Union[int, str]] = None, **kwargs: Any -) -> {obj_cls.__name__}: - return cast({obj_cls.__name__}, super().get(id=id, **kwargs)) +def get(self, **kwargs: Any) -> {obj_cls.__name__}: + return cast({obj_cls.__name__}, super().get(**kwargs)) You may also need to add the following imports: -from typing import Any, cast, Optional, Union" +from typing import Any, cast" """ |
