-
Notifications
You must be signed in to change notification settings - Fork 979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: make _convert_to_structure_to_list return a type instead of an ElementaryType's type
field
#1935
fix: make _convert_to_structure_to_list return a type instead of an ElementaryType's type
field
#1935
Conversation
Would you mind making this against the dev branch please? |
b623dcd
to
3419be0
Compare
…tary type's type field
3419be0
to
e651d3d
Compare
slither/slithir/convert.py
Outdated
if isinstance(return_type, (ElementaryType, UserDefinedType, TypeAlias)): | ||
return [return_type] | ||
|
||
assert False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we change the isinstance check to an assert instead of asserting False?
slither/slithir/convert.py
Outdated
if isinstance(return_type, (ElementaryType, UserDefinedType, TypeAlias)): | ||
return [return_type] | ||
|
||
assert False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if isinstance(return_type, (ElementaryType, UserDefinedType, TypeAlias)): | |
return [return_type] | |
assert False | |
assert isinstance(return_type, (ElementaryType, UserDefinedType, TypeAlias)) | |
return [return_type] |
Can you format this please? |
Yes. Done. |
Fix #1918