Skip to content

Commit

Permalink
Move variable static types to comments
Browse files Browse the repository at this point in the history
Variable static typing added in Python 3.6
Closes #115
  • Loading branch information
klane committed Dec 27, 2019
1 parent 7aa6b86 commit 9d708aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jekyllnb/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class JekyllExporter(MarkdownExporter):
"""Exporter to write Markdown with Jekyll metadata"""

resources: Dict[str, Any] = {}
resources = {} # type: Dict[str, Any]

def from_filename(self, filename, resources=None, **kwargs):
"""Convert notebook from a file
Expand Down
4 changes: 2 additions & 2 deletions jekyllnb/jekyllnb.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from .__version__ import __version__

JEKYLLNB_ALIASES: Dict[str, str] = {}
JEKYLLNB_ALIASES = {} # type: Dict[str, str]
JEKYLLNB_ALIASES.update(nbconvert_aliases)
JEKYLLNB_ALIASES.update(
{
Expand All @@ -17,7 +17,7 @@
}
)

JEKYLLNB_FLAGS: Dict[str, Sequence[Any]] = {}
JEKYLLNB_FLAGS = {} # type: Dict[str, Sequence[Any]]
JEKYLLNB_FLAGS.update(nbconvert_flags)
JEKYLLNB_FLAGS.update(
{
Expand Down

0 comments on commit 9d708aa

Please sign in to comment.