Skip to content

Commit

Permalink
Fix mypy issues, prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ishepard committed May 5, 2020
1 parent 41aec10 commit 5a16bfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pydriller/domain/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def language_supported(self) -> bool:
return lizard_languages.get_reader_for(self.filename) is not None

@property
def nloc(self) -> int:
def nloc(self) -> Optional[int]:
"""
Calculate the LOC of the file.
Expand All @@ -245,7 +245,7 @@ def nloc(self) -> int:
return self._nloc

@property
def complexity(self) -> int:
def complexity(self) -> Optional[int]:
"""
Calculate the Cyclomatic Complexity of the file.
Expand All @@ -255,7 +255,7 @@ def complexity(self) -> int:
return self._complexity

@property
def token_count(self) -> int:
def token_count(self) -> Optional[int]:
"""
Calculate the token count of functions.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
long_description=long_description,
author='Davide Spadini',
author_email='[email protected]',
version='1.14',
version='1.15',
packages=find_packages('.'),
url='https://github.com/ishepard/pydriller',
license='Apache License',
Expand Down

0 comments on commit 5a16bfe

Please sign in to comment.