Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbuwen committed Mar 13, 2020
1 parent 26c681c commit 8b79e2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion skillbridge/client/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __repr__(self) -> str:
return f"<function collection {self._prefix}*>\n{dir(self)}"

@lru_cache(maxsize=128)
def __dir__(self) -> List[str]:
def __dir__(self) -> List[str]: # type: ignore
code = self._translate.encode_globals(self._prefix)
result = self._channel.send(code)
functions = self._translate.decode_globals(result)
Expand Down
4 changes: 2 additions & 2 deletions skillbridge/client/translator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import NoReturn, Any, List, Iterable, cast
from typing import NoReturn, Any, List, Iterable, cast, Match
from re import sub, findall
from json import dumps, loads
from warnings import warn_explicit
Expand Down Expand Up @@ -28,7 +28,7 @@ def _skill_value_to_python(string: str, replicate: Replicator) -> Skill:
)


def _upper_without_first(match: Any) -> str:
def _upper_without_first(match: Match[str]) -> str:
return match.group()[1:].upper()


Expand Down

0 comments on commit 8b79e2f

Please sign in to comment.