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

Rename NoneTrait to make it private #1107

Merged
merged 3 commits into from
May 19, 2020
Merged

Rename NoneTrait to make it private #1107

merged 3 commits into from
May 19, 2020

Conversation

kitchoi
Copy link
Contributor

@kitchoi kitchoi commented May 19, 2020

Closes #1105

Checklist

  • Tests
  • Update API reference (docs/source/traits_api_reference): autodoc handles that.
  • Update User manual (docs/source/traits_user_manual): never mentioned
  • Update type annotation hints in traits-stubs~

@kitchoi kitchoi changed the title Rename NoneTrait -> _NoneTrait Rename NoneTrait to make it private May 19, 2020
@@ -3810,7 +3810,7 @@ def as_ctrait(self):
return self.trait_maker.as_ctrait()


class NoneTrait(TraitType):
class _NoneTrait(TraitType):
Copy link
Member

Choose a reason for hiding this comment

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

Could we maybe take the opportunity to note in the docstring that this is primarily for use in the Either implementation?

Copy link
Member

Choose a reason for hiding this comment

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

Gah. Union, not Either, of course.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 Yes it would!

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

@codecov-commenter
Copy link

codecov-commenter commented May 19, 2020

Codecov Report

Merging #1107 into master will decrease coverage by 1.94%.
The diff coverage is 68.37%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1107      +/-   ##
==========================================
- Coverage   76.15%   74.21%   -1.95%     
==========================================
  Files          54       78      +24     
  Lines        6493     8469    +1976     
  Branches     1263     1610     +347     
==========================================
+ Hits         4945     6285    +1340     
- Misses       1205     1806     +601     
- Partials      343      378      +35     
Impacted Files Coverage Δ
traits/api.py 100.00% <ø> (+9.67%) ⬆️
traits/base_trait_handler.py 61.76% <ø> (ø)
traits/observers/_i_notifier.py 0.00% <0.00%> (ø)
traits/observers/events.py 0.00% <0.00%> (ø)
traits/traits.py 75.10% <ø> (-2.45%) ⬇️
traits/util/resource.py 15.25% <ø> (ø)
traits/observers/_generated_parser.py 51.96% <51.96%> (ø)
traits/trait_types.py 72.29% <88.88%> (-0.16%) ⬇️
traits/observers/parsing.py 95.34% <95.34%> (ø)
traits/observers/_trait_event_notifier.py 96.61% <96.61%> (ø)
... and 57 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f7abb73...0e08406. Read the comment docs.

@kitchoi
Copy link
Contributor Author

kitchoi commented May 19, 2020

Appveyor build is complaining about connection to packages.enthought.com, restarting to see if this is a temporary network problem...

@kitchoi kitchoi merged commit cd41fb2 into master May 19, 2020
@kitchoi kitchoi deleted the 1105-rename-none-trait branch May 19, 2020 12:26
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.

Rename NoneTrait to make it private
3 participants