Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
66747343
Commit
66747343
authored
May 09, 2018
by
Thanassis Tsiodras
Browse files
Appease mypy.
parent
daabef51
Changes
1
Hide whitespace changes
Inline
Side-by-side
dmt/commonPy/asnParser.py
View file @
66747343
...
...
@@ -260,10 +260,11 @@ def VerifyAndFixAST() -> Dict[str, str]:
# To cope with ReferenceTypes that redefine their
# constraints (for now, ASN1SCC provides only INTEGERs)
if
isinstance
(
originalNode
,
AsnMetaType
):
target
=
copy
.
copy
(
node
)
# we need to keep the _asnFilename
target
=
copy
.
copy
(
node
)
# type: ignore
# we need to keep the _asnFilename
target
.
_asnFilename
=
originalNode
.
_asnFilename
if
isinstance
(
node
,
AsnInt
)
and
Min
is
not
None
and
Max
is
not
None
:
target
.
_range
=
[
Min
,
Max
]
target
.
_range
=
[
Min
,
Max
]
# type: ignore
elif
isinstance
(
node
,
AsnInt
)
and
Min
is
not
None
and
Max
is
not
None
:
target
=
copy
.
copy
(
node
)
# we need to keep the Min/Max
target
.
_range
=
[
Min
,
Max
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment