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

Ensure that transformers do not overwrite docstrings #1010

Merged
merged 1 commit into from
May 17, 2017

Conversation

drvinceknight
Copy link
Member

@drvinceknight drvinceknight commented May 17, 2017

Currently our docstrings get overwritten for a number of strategies.
For example the Alexei strategy's docstring does not appear (as the
class written passes through a transformer):
http://axelrod.readthedocs.io/en/latest/reference/all_strategies.html#axelrod.strategies.titfortat.Alexei

(Here is the source code for Alexei:
http://axelrod.readthedocs.io/en/latest/_modules/axelrod/strategies/titfortat.html#Alexei

This ensures the original docstring is kept and also fixes a couple of
errors that then appeared in the docstrings.

Currently our docstrings get over written for a number of strategies.
For example the Alexei strategy's docstring does not appear (as the
class written passes through a transformer):
http://axelrod.readthedocs.io/en/latest/reference/all_strategies.html#axelrod.strategies.titfortat.Alexei

(Here is the source code for Alexei:
http://axelrod.readthedocs.io/en/latest/_modules/axelrod/strategies/titfortat.html#Alexei

This ensures the original docstring is kept and also fixes a couple of
errors that then appeared in the docstrings.
@drvinceknight drvinceknight force-pushed the transformers_docstring branch from 280f8dc to 0a315bc Compare May 17, 2017 12:39
@meatballs meatballs merged commit 4702455 into master May 17, 2017
@meatballs meatballs deleted the transformers_docstring branch May 17, 2017 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants