Skip to content

Commit

Permalink
Merge pull request #8 from croningp/type_annotation
Browse files Browse the repository at this point in the history
Add type annotation
  • Loading branch information
dcambie authored Jun 30, 2020
2 parents 91ce8ad + 1182e4a commit 13a999f
Show file tree
Hide file tree
Showing 7 changed files with 362 additions and 336 deletions.
5 changes: 5 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mypy]
show_absolute_path = True

[mypy-serial]
ignore_missing_imports = True
2 changes: 1 addition & 1 deletion pycont/_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
__logger_root_name__ = 'pycont'


def create_logger(name):
def create_logger(name: str) -> logging.Logger:
return logging.getLogger(__logger_root_name__ + '.' + name)
Loading

0 comments on commit 13a999f

Please sign in to comment.