From 9d708aa4291aacacfd09cd83873caa9a715f175a Mon Sep 17 00:00:00 2001 From: Kevin Lane Date: Thu, 26 Dec 2019 16:20:13 -0800 Subject: [PATCH] Move variable static types to comments Variable static typing added in Python 3.6 Closes #115 --- jekyllnb/exporter.py | 2 +- jekyllnb/jekyllnb.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jekyllnb/exporter.py b/jekyllnb/exporter.py index 92c6fb5..0c6c23a 100644 --- a/jekyllnb/exporter.py +++ b/jekyllnb/exporter.py @@ -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 diff --git a/jekyllnb/jekyllnb.py b/jekyllnb/jekyllnb.py index d585d92..039d5f1 100644 --- a/jekyllnb/jekyllnb.py +++ b/jekyllnb/jekyllnb.py @@ -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( { @@ -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( {