Skip to content

Commit

Permalink
Fix typos (#1611)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
  • Loading branch information
caioagiani and mdickinson committed Jan 31, 2022
1 parent 3e22388 commit c8bd6e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,7 @@ Fixes

* Fix race condition when removing a traits listener. (#57)
* Fix ugly interaction between DelegatesTo change handlers, dynamic change
handlers and two levels of dynamic intialization. (#63)
handlers and two levels of dynamic initialization. (#63)
* Use a NullHandler for all 'traits' loggers. (#64)
* Fix race condition in TraitChangeNotifyWrapper.listener_deleted (#66)
* Fix leaking notifiers. (#68)
Expand Down
2 changes: 1 addition & 1 deletion traits/ctrait.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
The CTrait class extends the C-level cTrait type to provide the full CTrait
API. CTraits are the core objects that are used to generate defaults and
validate as well as maintining a list of notifiers and calling them when
validate as well as maintaining a list of notifiers and calling them when
values are modified.
"""

Expand Down
4 changes: 2 additions & 2 deletions traits/tests/check_observe_timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def get_property_simple_timing(property_args, cached_property):
""" Time the cases described by the (cached) property depending on a simple
trait scenario. Whether or not the property is cached is based on the
cached_property argument, and the given property_args argument is used in
the Property trait defintion.
the Property trait definition.
Parameters
----------
Expand Down Expand Up @@ -373,7 +373,7 @@ def get_property_extended_timing(property_args, cached_property):
""" Time the cases described by the (cached) property depending on an
extended trait scenario. Wether or not the property is cached is determined
by the cached_property argument, and the given property_args argument is
used for the Property trait defintion.
used for the Property trait definition.
Parameters
----------
Expand Down
6 changes: 3 additions & 3 deletions traits/tests/test_has_traits.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,19 +913,19 @@ class SubClass(BaseClass):
self.assertEqual(len(instance.events), 1)

def test_observer_overridden(self):
# The handler is overriden, no change event should be registered.
# The handler is overridden, no change event should be registered.
class BaseClass(HasTraits):
events = List()

@observe("value")
def handler(self, event):
self.events.append(event)

class SubclassOverriden(BaseClass):
class SubclassOverridden(BaseClass):
value = Int()
handler = None

instance = SubclassOverriden()
instance = SubclassOverridden()
instance.value += 1
self.assertEqual(len(instance.events), 0)

Expand Down

0 comments on commit c8bd6e5

Please sign in to comment.