Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d85cbb9

Browse files
committed
Fix grammar nits
1 parent 99b1665 commit d85cbb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pep-0562.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Post-History: 09-Sep-2017
1212
Abstract
1313
========
1414

15-
It is proposed to support ``__getattr__`` function defined on modules to
15+
It is proposed to support a ``__getattr__`` function defined on modules to
1616
provide basic customization of module attribute access.
1717

1818

@@ -22,7 +22,7 @@ Rationale
2222
It is sometimes convenient to customize or otherwise have control over
2323
access to module attributes. A typical example is managing deprecation
2424
warnings. Typical workarounds are assigning ``__class__`` of a module object
25-
to a custom subclass of ``types.ModuleType`` or substituting ``sys.modules``
25+
to a custom subclass of ``types.ModuleType`` or replacing the ``sys.modules``
2626
item with a custom wrapper instance. It would be convenient to simplify this
2727
procedure by recognizing ``__getattr__`` defined directly in a module that
2828
would act like a normal ``__getattr__`` method, except that it will be defined
@@ -84,7 +84,7 @@ Specification
8484
=============
8585

8686
The ``__getattr__`` function at the module level should accept one argument
87-
which is a name of an attribute and return the computed value or raise
87+
which is the name of an attribute and return the computed value or raise
8888
an ``AttributeError``::
8989

9090
def __getattr__(name: str) -> Any: ...

0 commit comments

Comments
 (0)