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 visible mocks in documented types #85

Open
MatthewJA opened this issue Feb 16, 2017 · 0 comments
Open

Remove visible mocks in documented types #85

MatthewJA opened this issue Feb 16, 2017 · 0 comments

Comments

@MatthewJA
Copy link
Collaborator

Looking at the autodocs, we see things like:

class acton.database.ASCIIReader(
    path: str, feature_cols: typing.List[str],
    label_col: str,
    encode_labels: bool = True,
    label_encoder: <MagicMock name='mock.LabelEncoder' id='140295020343192'> = None)

It would be great if we could somehow hide that mock. Perhaps overriding __repr__ for mocked documentation types would be a possibility?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant