Skip to content

Commit

Permalink
Fix type annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd committed Dec 13, 2024
1 parent a6b1916 commit 6860152
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions comtypes/server/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ def __init__(self, cls):
self._cls = cls
self._table = []

def _add(self, key: str, subkey: str, name: str, value: str) -> None:
self._table.append((key, subkey, name, value))
def _add(self, rootkey: int, subkey: str, name: str, value: str) -> None:
self._table.append((rootkey, subkey, name, value))

def _get_full_classname(self, cls):
"""Return <modulename>.<classname> for 'cls'."""
Expand All @@ -248,7 +248,7 @@ def _get_pythonpath(self, cls):
dirname = os.path.dirname(sys.modules[modname].__file__)
return os.path.abspath(dirname)

def __iter__(self) -> Iterator[Tuple[str, str, str, str]]:
def __iter__(self) -> Iterator[Tuple[int, str, str, str]]:
"""Return a iterator of tuples containing registry entries.
The tuples must be (key, subkey, name, value).
Expand Down

0 comments on commit 6860152

Please sign in to comment.