-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: PackageManifest utilities for working with Compilers list [APE-1497] #94
Conversation
210eabd
to
aaddee5
Compare
aaddee5
to
fb3db29
Compare
b6a3b77
to
5908929
Compare
915cfce
to
3b87cbc
Compare
@fubuloubu thoughts? The changes here are rather agnostic. |
ethpm_types/manifest.py
Outdated
|
||
return None | ||
|
||
def update_compilers(self, compilers: List[Compiler]): |
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 also be extend_compilers
?
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.
maybe just add_compilers
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.
and could be add_compilers(*compilers: Sequence[Compiler])
|
||
self.compilers = full_list | ||
start = self.compilers or [] | ||
start.extend([c for c in compilers if c not in start]) |
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.
for the future I think .extend
takes in a sequence so you can just do .extend(c for c in ...)
What I did
How I did it
How to verify it
Checklist