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

Fix a minor grammar error in some docstrings. #1191

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions libcst/_nodes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __post_init__(self) -> None:
def __init_subclass__(cls, **kwargs: Any) -> None:
"""
HACK: Add our implementation of `__repr__`, `__hash__`, and `__eq__` to the
class's __dict__ to prevent dataclass from generating it's own `__repr__`,
class's __dict__ to prevent dataclass from generating its own `__repr__`,
`__hash__`, and `__eq__`.

The alternative is to require each implementation of a node to remember to add
Expand Down Expand Up @@ -152,7 +152,7 @@ def validate_types_shallow(self) -> None:
Compares the type annotations on a node's fields with those field's actual
values at runtime. Raises a TypeError is a mismatch is found.

Only validates the current node, not any of it's children. For a recursive
Only validates the current node, not any of its children. For a recursive
version, see :func:`validate_types_deep`.

If you're using a static type checker (highly recommended), this is useless.
Expand Down
Loading