Skip to content
Commit edd01a57 authored by Igor Ponomarev's avatar Igor Ponomarev Committed by Nejc Habjan
Browse files

chore: Remove trivial get methods in preparation for generic Get mixin



Currently because the Get mixin is not generic every subclass has
to implement its own `get` methods to type hint `get` method return
beoynd the basic RESTObject.

The upcoming PR will change Get mixin to use generics. This means
it will be able to type hint the corresponding `_obj_cls` and no
`get` method would need to be redefined.

Because removing existing `get` methods modifies a lot of files
split it in to a separate commit.

Also remove the `tests/unit/meta/test_ensure_type_hints.py` file
because testing subclasses for `get` methods is no longer relevant.

Signed-off-by: default avatarIgor Ponomarev <igor.ponomarev@collabora.com>
parent 515a8a25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy