Skip to content

Commit b018893

Browse files
committed
Updated stone.
1 parent 0dc1af7 commit b018893

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

dropbox/stone_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
except (SystemError, ValueError):
1414
# Catch errors raised when importing a relative module when not in a package.
1515
# This makes testing this file directly (outside of a package) easier.
16-
import stone_validators as bv
16+
import stone_validators as bv # type: ignore
1717

1818

1919
class Union(object):

dropbox/stone_serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
except (SystemError, ValueError):
2525
# Catch errors raised when importing a relative module when not in a package.
2626
# This makes testing this file directly (outside of a package) easier.
27-
import stone_validators as bv
27+
import stone_validators as bv # type: ignore
2828

2929

3030
# --------------------------------------------------------------

dropbox/stone_validators.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import numbers
1919
import re
2020
import six
21+
from typing import Optional
2122

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

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

189190
def __init__(self, min_value=None, max_value=None):
190191
"""

0 commit comments

Comments
 (0)