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

Remove mentions of 'adapts' and 'implements' from examples and tutorial #1367

Merged
merged 5 commits into from
Nov 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions examples/tutorials/doc_examples/examples/external_adapter.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
# interface_implementation.py - Example of implementing an interface

# --[Imports]------------------------------------------------------------------
from traits.api import HasTraits, implements, Str, Instance
from traits.api import HasTraits, Instance, provides, Str
from interface_definition import IName


# --[Code]---------------------------------------------------------------------
@provides(IName)
class Person(HasTraits):
implements(IName)

first_name = Str("John")
last_name = Str("Doe")

Expand Down
35 changes: 0 additions & 35 deletions examples/tutorials/doc_examples/examples/scratch_adapter.py

This file was deleted.

8 changes: 3 additions & 5 deletions examples/tutorials/doc_examples/examples/simple_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@
# simple_adapter.py - Example of adaptation using Adapter

# --[Imports]------------------------------------------------------------------
from traits.api import Adapter, Instance, implements
from traits.api import Adapter, Instance, provides

from interface_definition import IName
from interface_implementation import Person


# --[Code]---------------------------------------------------------------------
@provides(IName)
class PersonINameAdapter(Adapter):

# Declare what interfaces this adapter implements for its
# client:
implements(IName)

# Declare the type of client it supports:
adaptee = Instance(Person)

Expand Down
289 changes: 0 additions & 289 deletions examples/tutorials/traits_4.0/interfaces/adaptation.py

This file was deleted.

Loading