-
Notifications
You must be signed in to change notification settings - Fork 24
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
Replace compose class with compose function in functional.py #12
Comments
quipa
changed the title
Replace
Replace compose class with compose function in functional.py
Jun 9, 2018
compose
class with compose
function in functional.py
That architectural change would require some effort, instead of overriding |
ankostis
added a commit
to pygraphkit/graphtik
that referenced
this issue
Nov 24, 2019
so as not to have to pass them on each call. + BREAK(netop): simplify `compose` API by turning it from class --> function; all args are now given in a single `compose()` call. (yahoo#12) + FIX: netop `needs` are not _optional_ by default; optional becomes only if all underlying operations have a certain need as optional. + feat(netop): +copy() method for setting pruning needs/provides.
ankostis
added a commit
to pygraphkit/graphtik
that referenced
this issue
Nov 25, 2019
so as not to have to pass them on each call. + BREAK(netop): simplify `compose` API by turning it from class --> function; all args are now given in a single `compose()` call. (yahoo#12) + FIX: netop `needs` are not _optional_ by default; optional becomes only if all underlying operations have a certain need as optional. + feat(netop): +copy() method for setting pruning needs/provides.
ankostis
added a commit
to pygraphkit/graphtik
that referenced
this issue
Nov 25, 2019
so as not to have to pass them on each call. + BREAK(netop): simplify `compose` API by turning it from class --> function; all args are now given in a single `compose()` call. (yahoo#12) + FIX: netop `needs` are not _optional_ by default; optional becomes only if all underlying operations have a certain need as optional. + feat(netop): +copy() method for setting pruning needs/provides.
ankostis
added a commit
to pygraphkit/graphtik
that referenced
this issue
Nov 25, 2019
so as not to have to pass them on each call. + BREAK(netop): simplify `compose` API by turning it from class --> function; all args are now given in a single `compose()` call. (yahoo#12) + FIX: netop `needs` are not _optional_ by default; optional becomes only if all underlying operations have a certain need as optional. + feat(netop): +copy() method for setting pruning needs/provides.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems compose class could be converted to a function and use the initialization arguments as named arguments for the function instead.
Also the class name does not follow the default PEP 8 class naming CapWords convention (although PEP 8 does accept classes that are mainly used as callables to use the function naming convention). For regular Python users this can be confusing.
The text was updated successfully, but these errors were encountered: