-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport bugfix PRs to the 6.1.x release branch (#1251)
* Fix end-year in copyright statement (#1198) (cherry picked from commit 21e2a99) * Fix trait-documenter extension tests for Sphinx 3.1 (#1206) (cherry picked from commit aeaf72f) * DOC/FIX: User manual mentioning a nonexisting feature in metadata filter (#1207) * Fix user manual erroneously mentioning a nonexisting feature * Fix grammar Co-authored-by: Mark Dickinson <mdickinson@enthought.com> Co-authored-by: Mark Dickinson <mdickinson@enthought.com> (cherry picked from commit 3e78a41) * Spelling and grammar. (#1210) (cherry picked from commit 24c4d76) * Fix description in README to match the one in the setup script (#1219) (cherry picked from commit a5dc3f2) * Fix some missing stubs (#1204) * Add a couple of missing imports to api.pyi * Remove mis-spelled stubs file * Add missing api.pyi stubs for the has_traits module * Add CTrait * Add imports for BaseTraitHandler and TraitHandler * Add constants (cherry picked from commit 47806c8) * Standardize copyright years (#1227) * Standardize copyright years * Use hard-coded year in conf.py, for ease of later search-and-replace. Also normalise punctuation. * More punctuation OCD * More consistency fixes * Remove unused import * Remove the _right_ unused import * Yet one more consistency fix (cherry picked from commit aa63531) * Don't mutate global state at import time in a test module (#1222) (cherry picked from commit 24345a1) * Fix typo in optional_dependencies (#1235) Fix a comment that mistakenly refers to traits.api, when it means traitsui.api. (cherry picked from commit a48ede5) * Update PyPI links and capitalization in README.rst (#1250) * Update PyPI links and capitalization in README.rst This PR: - updates incorrect and inconsistent capitalization in the README - adds a PyPI link for Sphinx - adds a PyPI link for the Enthought Sphinx Theme (the previous link was to GitHub) * Clarify that later versions of Sphinx are fine * Update README.rst (cherry picked from commit 8d03955) * Update changelog Co-authored-by: Kit Choi <kitchoi@users.noreply.github.com>
- Loading branch information
1 parent
48bf587
commit 76ecb14
Showing
27 changed files
with
162 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
traits-stubs/traits_stubs_tests/examples/HasStrictTraits.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from traits.api import Event, HasStrictTraits, observe | ||
|
||
|
||
class Person(HasStrictTraits): | ||
conductor = Event() | ||
|
||
@observe("conductor") | ||
def talk(self, event): | ||
pass | ||
|
||
|
||
def sing(event): | ||
pass | ||
|
||
|
||
person = Person() | ||
person.observe(sing, "conductor") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from traits.api import Float, HasTraits, Interface, provides, Str, Tuple | ||
|
||
|
||
class IHasName(Interface): | ||
name = Str() | ||
|
||
|
||
@provides(IHasName) | ||
class NamedColor(HasTraits): | ||
name = Str() | ||
|
||
rgb = Tuple(Float, Float, Float) | ||
|
||
|
||
named_color = NamedColor(name="green", rgb=(0.0, 1.0, 0.0)) |
Oops, something went wrong.