Skip to content

Commit

Permalink
Merge pull request #1345 from JohnVillalovos/jlvillal/mypy_base_fixes
Browse files Browse the repository at this point in the history
chore: add additional type-hints for gitlab/base.py
  • Loading branch information
nejch committed Feb 28, 2021
2 parents 5bc158d + ad72ef3 commit 7441455
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gitlab/base.py
Expand Up @@ -16,6 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import importlib
from types import ModuleType
from typing import Any, Dict, Optional, Type

from .client import Gitlab, GitlabList
Expand All @@ -38,7 +39,12 @@ class RESTObject(object):
without ID in the url.
"""

_id_attr = "id"
_id_attr: Optional[str] = "id"
_attrs: Dict[str, Any]
_module: ModuleType
_parent_attrs: Dict[str, Any]
_updated_attrs: Dict[str, Any]
manager: "RESTManager"

def __init__(self, manager: "RESTManager", attrs: Dict[str, Any]) -> None:
self.__dict__.update(
Expand Down

0 comments on commit 7441455

Please sign in to comment.