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

Fix the Instance init stub #1064

Merged
merged 3 commits into from
May 5, 2020
Merged

Fix the Instance init stub #1064

merged 3 commits into from
May 5, 2020

Conversation

corranwebster
Copy link
Contributor

The fix was to use generic *args and **kwargs after the first argument since the __init__ method potentially shuffles them. This broke Date, Datetime and Time, so specific __init__ methods were added for them.

Fixes #1062.

Checklist

  • Tests
  • [ ] Update API reference (docs/source/traits_api_reference)
  • [ ] Update User manual (docs/source/traits_user_manual)
  • Update type annotation hints in traits-stubs

Copy link
Member

@mdickinson mdickinson left a comment

Choose a reason for hiding this comment

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

LGTM, provided the tests pass.

@corranwebster corranwebster merged commit 967951e into master May 5, 2020
@corranwebster corranwebster deleted the fix/instance-stubs branch May 5, 2020 07:36
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.

Traits-stubs Instance argument variants not all covered
2 participants