File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Post-History: 09-Sep-2017
12
12
Abstract
13
13
========
14
14
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
16
16
provide basic customization of module attribute access.
17
17
18
18
@@ -22,7 +22,7 @@ Rationale
22
22
It is sometimes convenient to customize or otherwise have control over
23
23
access to module attributes. A typical example is managing deprecation
24
24
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 ``
26
26
item with a custom wrapper instance. It would be convenient to simplify this
27
27
procedure by recognizing ``__getattr__ `` defined directly in a module that
28
28
would act like a normal ``__getattr__ `` method, except that it will be defined
@@ -84,7 +84,7 @@ Specification
84
84
=============
85
85
86
86
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
88
88
an ``AttributeError ``::
89
89
90
90
def __getattr__(name: str) -> Any: ...
You can’t perform that action at this time.
0 commit comments