Skip to content

Commit

Permalink
Release v7.2.1
Browse files Browse the repository at this point in the history
- Bump version.
- Update spec and stone.
- Make update_version.sh more portable.
- Update .gitignore.
  • Loading branch information
mbogosian committed Feb 28, 2017
1 parent 8c7bdcf commit e045859
Show file tree
Hide file tree
Showing 8 changed files with 430 additions and 237 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__pycache__/
.cache/
*.egg
*.egg-info/
*.pyc
Expand Down
2 changes: 1 addition & 1 deletion dropbox/dropbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'create_session',
]

__version__ = '7.2.0'
__version__ = '7.2.1'

import contextlib
import json
Expand Down
6 changes: 5 additions & 1 deletion dropbox/stone_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@
# This makes testing this file directly (outside of a package) easier.
import stone_validators as bv # type: ignore

_MYPY = False
if _MYPY:
import typing # noqa: F401 # pylint: disable=import-error,unused-import,useless-suppression

class Union(object):

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

def __init__(self, tag, value=None):
assert tag in self._tagmap, 'Invalid tag %r.' % tag
Expand Down
Loading

0 comments on commit e045859

Please sign in to comment.