Skip to content

Commit

Permalink
Updated stone.
Browse files Browse the repository at this point in the history
  • Loading branch information
braincore committed Jul 28, 2016
1 parent 0dc1af7 commit b018893
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dropbox/stone_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
except (SystemError, ValueError):
# Catch errors raised when importing a relative module when not in a package.
# This makes testing this file directly (outside of a package) easier.
import stone_validators as bv
import stone_validators as bv # type: ignore


class Union(object):
Expand Down
2 changes: 1 addition & 1 deletion dropbox/stone_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
except (SystemError, ValueError):
# Catch errors raised when importing a relative module when not in a package.
# This makes testing this file directly (outside of a package) easier.
import stone_validators as bv
import stone_validators as bv # type: ignore


# --------------------------------------------------------------
Expand Down
9 changes: 5 additions & 4 deletions dropbox/stone_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import numbers
import re
import six
from typing import Optional

if six.PY3:
_binary_types = (bytes, memoryview)
Expand Down Expand Up @@ -121,8 +122,8 @@ class Integer(Primitive):
Do not use this class directly. Extend it and specify a 'minimum' and
'maximum' value as class variables for a more restrictive integer range.
"""
minimum = None
maximum = None
minimum = None # type: Optional[numbers.Integral]
maximum = None # type: Optional[numbers.Integral]

def __init__(self, min_value=None, max_value=None):
"""
Expand Down Expand Up @@ -183,8 +184,8 @@ class Real(Primitive):
and 'maximum' value to enforce a range that's a subset of the Python float
implementation. Python floats are doubles.
"""
minimum = None
maximum = None
minimum = None # type: Optional[numbers.Real]
maximum = None # type: Optional[numbers.Real]

def __init__(self, min_value=None, max_value=None):
"""
Expand Down

0 comments on commit b018893

Please sign in to comment.