Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Conversation

@ylil93
Copy link
Contributor

@ylil93 ylil93 commented Dec 12, 2018

  • updates package crawler to only include class/function args that don't have default values
  • update docstrings/comments

compatibility_lib/compatibility_lib/semver_checker.py Outdated Show resolved Hide resolved
@ylil93 ylil93 force-pushed the semver_checker branch 2 times, most recently from b6f56e6 to 18572d0 Compare December 18, 2018 21:17
- neither regular nor optional args cannot be removed
- args can be added as optional args
- arg order must be preserved
- default values must be preserved
- required args can be made optional
- logic currently assumes *args and **kwargs are the last two args
- added more test cases
'single_args': [arg1, arg2, ...],
'defaults': {arg1: value1, ...},
'vararg': argv,
'kwarg': kwargs,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you need to know the position of these things?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get the args using ast tooling which returns the args in order.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.