Skip to content

Commit

Permalink
Fix some minor type annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Aug 30, 2021
1 parent a887422 commit 3d31433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Optional


def readfile(filename):
def readfile(filename: str) -> str:
with io.open(filename, encoding="utf-8") as stream:
return stream.read()

Expand All @@ -18,7 +18,7 @@ def readfile(filename):


# make entry point specifications
def plugin(plugin_name: str, mod_name: Optional[str] = None):
def plugin(plugin_name: str, mod_name: Optional[str] = None) -> str:
if mod_name is None:
mod_name = plugin_name
path = "sphinxcontrib.bibtex.style.referencing"
Expand Down

0 comments on commit 3d31433

Please sign in to comment.