Skip to content

Commit e045859

Browse files
committed
Release v7.2.1
- Bump version. - Update spec and stone. - Make update_version.sh more portable. - Update .gitignore.
1 parent 8c7bdcf commit e045859

File tree

8 files changed

+430
-237
lines changed

8 files changed

+430
-237
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
__pycache__/
2+
.cache/
23
*.egg
34
*.egg-info/
45
*.pyc

dropbox/dropbox.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'create_session',
55
]
66

7-
__version__ = '7.2.0'
7+
__version__ = '7.2.1'
88

99
import contextlib
1010
import json

dropbox/stone_base.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@
1515
# This makes testing this file directly (outside of a package) easier.
1616
import stone_validators as bv # type: ignore
1717

18+
_MYPY = False
19+
if _MYPY:
20+
import typing # noqa: F401 # pylint: disable=import-error,unused-import,useless-suppression
1821

19-
class Union(object):
2022

23+
class Union(object):
2124
# TODO(kelkabany): Possible optimization is to remove _value if a
2225
# union is composed of only symbols.
2326
__slots__ = ['_tag', '_value']
27+
_tagmap = {} # type: typing.Dict[typing.Text, bv.Validator]
2428

2529
def __init__(self, tag, value=None):
2630
assert tag in self._tagmap, 'Invalid tag %r.' % tag

0 commit comments

Comments
 (0)