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

ENH: Add Interface.from_class. #14

Merged
merged 2 commits into from
Feb 19, 2018
Merged

ENH: Add Interface.from_class. #14

merged 2 commits into from
Feb 19, 2018

Conversation

ssanderson
Copy link
Owner

Adds a new classmethod, from_class to Interface, for generating an
interface from an existing class. This is useful when you want to create
a class whose interface matches the interface of an existing class you
can't control (e.g., for creating a test double of class defined in a
library).

Scott Sanderson added 2 commits February 19, 2018 01:16
Adds a new classmethod, `from_class` to `Interface`, for generating an
interface from an existing class. This is useful when you want to create
a class whose interface matches the interface of an existing class you
can't control (e.g., for creating a test double of class defined in a
library).
@ssanderson ssanderson merged commit 218ab55 into master Feb 19, 2018
@ssanderson ssanderson deleted the from-class branch February 19, 2018 06:40
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.

None yet

1 participant