From 4b3237745eaf550a5c78e4229586d58017aed79b Mon Sep 17 00:00:00 2001 From: Jamie Bliss Date: Tue, 23 Oct 2018 16:38:30 -0400 Subject: [PATCH] Fix some names --- .gitignore | 1 + ppb_mutant/__init__.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8528635..7361b1d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ __pycache__/ *.egg-info/ /build/ /dist/ +/.mypy_cache/ diff --git a/ppb_mutant/__init__.py b/ppb_mutant/__init__.py index 4d736a0..37b1586 100644 --- a/ppb_mutant/__init__.py +++ b/ppb_mutant/__init__.py @@ -7,7 +7,7 @@ * TONES_HMN, TONES_PAW, TONES_CLW: Valid tone values for specific morphs * TONES_ALL: Valid tone values for all morphs """ -from typing import Iterable, Tuple, Optional +from typing import Iterable, Tuple, Optional, Union, Type import ppb from ppb.flags import DoNotRender import os @@ -113,8 +113,8 @@ class MutantSprite(ppb.BaseSprite): * tone: the tone to color with """ morph: str = 'hmn' - tone: typing.Optional[str] = None - emoji: typing.Union[str, typing.Type[DoNotRender]] = 'no_entry' + tone: Optional[str] = None + emoji: Union[str, Type[DoNotRender]] = 'no_entry' _aliases = dict(load_aliases())