Skip to content

Commit

Permalink
Merge dab0228 into c8fa431
Browse files Browse the repository at this point in the history
  • Loading branch information
avanov committed Dec 31, 2020
2 parents c8fa431 + dab0228 commit 8ea9dce
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -2,6 +2,12 @@
CHANGELOG
=========

3.9.1.3
===============

* Slightly better error reports of Union parsing


3.9.1.2
===============

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -53,7 +53,7 @@
# The short X.Y version.
version = '3.9'
# The full version, including alpha/beta/rc tags.
release = '3.9.1.2'
release = '3.9.1.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -38,7 +38,7 @@ def requirements(at_path: Path):
# ----------------------------

setup(name='typeit',
version='3.9.1.2',
version='3.9.1.3',
description='typeit brings typed data into your project',
long_description=README,
classifiers=[
Expand Down
7 changes: 5 additions & 2 deletions typeit/schema/types.py
Expand Up @@ -82,7 +82,7 @@ def __init__(self,
})

def __repr__(self) -> str:
return f'Structure(typ={self.typ})'
return f'Structure({self.typ})'

def deserialize(self, node, cstruct):
r = super().deserialize(node, cstruct)
Expand Down Expand Up @@ -327,7 +327,10 @@ def deserialize(self, node, cstruct):

raise Invalid(
node,
f'None of the expected variants matches provided data. Tried: {collected_errors}',
f'None of the expected variants matches provided data.\n'
f'Tried variants: {collected_errors}\n'
f'Input: {cstruct}',

cstruct
)

Expand Down

0 comments on commit 8ea9dce

Please sign in to comment.