File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ Dynamic Type Creation
75
75
76
76
This function looks for items in *bases * that are not instances of
77
77
:class: `type `, and returns a tuple where each such object that has
78
- an `` __mro_entries__ ` ` method is replaced with an unpacked result of
78
+ an :meth: ` ~object. __mro_entries__ ` method is replaced with an unpacked result of
79
79
calling this method. If a *bases * item is an instance of :class: `type `,
80
80
or it doesn't have an ``__mro_entries__ `` method, then it is included in
81
81
the return tuple unchanged.
Original file line number Diff line number Diff line change @@ -2092,13 +2092,18 @@ Resolving MRO entries
2092
2092
:class: `type `, then an ``__mro_entries__ `` method is searched on the base.
2093
2093
If an ``__mro_entries__ `` method is found, the base is substituted with the
2094
2094
result of a call to ``__mro_entries__ `` when creating the class.
2095
- The method is called with the original bases tuple, and must return a tuple
2095
+ The method is called with the original bases tuple
2096
+ passed to the *bases * parameter, and must return a tuple
2096
2097
of classes that will be used instead of the base. The returned tuple may be
2097
2098
empty: in these cases, the original base is ignored.
2098
2099
2099
2100
.. seealso ::
2100
2101
2101
- :pep: `560 ` - Core support for typing module and generic types
2102
+ :func: `types.resolve_bases `
2103
+ Dynamically resolve bases that are not instances of :class: `type `.
2104
+
2105
+ :pep: `560 `
2106
+ Core support for typing module and generic types
2102
2107
2103
2108
2104
2109
Determining the appropriate metaclass
You can’t perform that action at this time.
0 commit comments