Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Oct 11, 2023
1 parent ae10697 commit f7afb31
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from functools import cmp_to_key
from operator import itemgetter
from pathlib import Path
from typing import List
from typing import List, Tuple
from urllib.parse import urlsplit
from urllib.error import HTTPError

Expand Down Expand Up @@ -223,7 +223,7 @@ def register(self, command_class, command_full_name):


class MainCommand(Command):
MODULES = ()
MODULES: Tuple[Tuple[str, str], ...] = ()

def __init__(self):
super().__init__(self.__class__.__name__)
Expand Down
23 changes: 23 additions & 0 deletions osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2927,6 +2927,29 @@ class Action:
prefix_to_elm = {'src': 'source', 'tgt': 'target', 'opt': 'options'}

def __init__(self, type, **kwargs):
self.acceptinfo_opackage: str = None
self.acceptinfo_oproject: str = None
self.acceptinfo_osrcmd5: str = None
self.acceptinfo_oxsrcmd5: str = None
self.acceptinfo_rev: str = None
self.acceptinfo_srcmd5: str = None
self.acceptinfo_xsrcmd5: str = None
self.group_name: str = None
self.group_role: str = None
self.grouped_id: str = None
self.opt_makeoriginolder: str = None
self.opt_sourceupdate: str = None
self.opt_updatelink: str = None
self.person_name: str = None
self.person_role: str = None
self.src_package: str = None
self.src_project: str = None
self.src_rev: str = None
self.tgt_package: str = None
self.tgt_project: str = None
self.tgt_releaseproject: str = None
self.tgt_repository: str = None

self.apiurl = kwargs.pop("apiurl", None)
self._src_pkg_object = None
self._tgt_pkg_object = None
Expand Down

0 comments on commit f7afb31

Please sign in to comment.