Skip to content

Commit

Permalink
Docs: fix reference
Browse files Browse the repository at this point in the history
  • Loading branch information
robsdedude committed Aug 16, 2024
1 parent 0756cbc commit 0d2fd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/metaclasses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ so it's better not to combine metaclasses and class hierarchies:
For some builtin types, mypy assumes that their metaclass is :py:class:`abc.ABCMeta`
even if it's :py:class:`type`. In those cases, you can either

* use :py:class:`abc.ABCMetaclass` instead of :py:class:`type` as the
* use :py:class:`abc.ABCMeta` instead of :py:class:`type` as the
superclass of your metaclass if that works in your use case,
* mute the error with ``# type: ignore[metaclass]``, or
* compute the metaclass' superclass dynamically, which mypy doesn't understand
Expand Down

0 comments on commit 0d2fd52

Please sign in to comment.