Skip to content
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

accept outputs with fewer arguments than their inputs per issue #29 #81

Merged
merged 2 commits into from
Apr 25, 2018

Conversation

fmoor
Copy link
Contributor

@fmoor fmoor commented Sep 17, 2017

There are some artificial restrictions that this implementation imposes
for the sake of simplicity.

  • outputs may accept *args if and only if the input accepts *args
  • outputs may accept **kwargs if and only if the input accepts **kwargs
  • If a py3 type annotation is present on an argument in an output's signature
    then the same argument and type annotation must appear
    in the input's signature.

There are some artificial restrictions that this implementation imposes
for the sake of simplicity.

- outputs may accept *args if and only if the input accepts *args
- outputs may accept **kwargs if and only if the input accepts **kwargs
- If a py3 type annotation is present on an argument in an output's signature
  then the same argument and type annotation must appear
  in the input's signature.
@coveralls
Copy link

coveralls commented Sep 17, 2017

Coverage Status

Coverage decreased (-0.2%) to 99.825% when pulling 94f9e60 on fmoor:feature/output_args into a6174bf on glyph:master.

@coveralls
Copy link

coveralls commented Sep 17, 2017

Coverage Status

Coverage decreased (-0.4%) to 99.648% when pulling 1e41a13 on fmoor:feature/output_args into a6174bf on glyph:master.

@coveralls
Copy link

coveralls commented Sep 17, 2017

Coverage Status

Coverage decreased (-0.2%) to 99.824% when pulling d5d5acc on fmoor:feature/output_args into a6174bf on glyph:master.

@coveralls
Copy link

coveralls commented Sep 17, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 40905d4 on fmoor:feature/output_args into a6174bf on glyph:master.

@glyph
Copy link
Owner

glyph commented Sep 24, 2017

I don't really have time for reviews right now but I'd love it if someone else could review this and land it. @markrwilliams @warner do I need to give either of you push rights to the repo?

@glyph
Copy link
Owner

glyph commented Apr 25, 2018

Looking at this now, it looks OK. I have minor nitpicks (I'd rather attr than namedtuple, docs should be updated) but this is an improvement and it doesn't expose any unrelated public API, so I can always fix it up later :).

@glyph glyph merged commit 39a7c6d into glyph:master Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants