Skip to content

Commit

Permalink
Merge pull request #27 from leonardbinet/mypy
Browse files Browse the repository at this point in the history
fix missing types
  • Loading branch information
leonardbinet authored Jul 14, 2021
2 parents c7ce458 + 23f4f9a commit 200a6cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lighttree/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class Obj(object):
with a figure), will be only available through dict `__getitem__` access.
"""

_REPR_NAME = None
_STRING_KEY_CONSTRAINT = True
_COERCE_ATTR = False
_REPR_NAME: Optional[str] = None
_STRING_KEY_CONSTRAINT: bool = True
_COERCE_ATTR: bool = False

def __init__(self, **kwargs: Any) -> None:
# will store non-valid names
Expand Down Expand Up @@ -122,8 +122,8 @@ class TreeBasedObj(Obj):
useless instances, only direct children of accessed nodes are expanded.
"""

_COERCE_ATTR = False
_ATTR = None
_COERCE_ATTR: bool = False
_ATTR: Optional[str] = None

def __init__(
self,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from setuptools import setup

__version__ = "1.1.3"
__version__ = "1.1.4"

develop_requires = [
"pre-commit",
Expand Down

0 comments on commit 200a6cf

Please sign in to comment.