Skip to content

Commit 120a8b9

Browse files
authored
Update types.py
1 parent f552c7a commit 120a8b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hug/types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
import marshmallow
3636
from marshmallow import ValidationError
3737

38-
MARSHMALLOW_MAJOR_VERSION = getattr(marshmallow,'__version_info__',LooseVersion(marshmallow.__version__).version)[0]
38+
MARSHMALLOW_MAJOR_VERSION = getattr(
39+
marshmallow, "__version_info__", LooseVersion(marshmallow.__version__).version
40+
)[0]
3941
except ImportError:
4042
# Just define the error that is never raised so that Python does not complain.
4143
class ValidationError(Exception):

0 commit comments

Comments
 (0)