Try to consistently use "inherit" vs "derive" in documentation.

This commit is contained in:
Rapptz
2019-03-19 09:21:41 -04:00
parent d9e54d7dd3
commit c30a366106
5 changed files with 15 additions and 15 deletions

View File

@@ -182,7 +182,7 @@ class BotBase(GroupMixin):
This function can either be a regular function or a coroutine.
Similar to a command :func:`.check`\, this takes a single parameter
of type :class:`.Context` and can only raise exceptions derived from
of type :class:`.Context` and can only raise exceptions inherited from
:exc:`.CommandError`.
Example
@@ -255,7 +255,7 @@ class BotBase(GroupMixin):
This function can either be a regular function or a coroutine.
Similar to a command :func:`.check`\, this takes a single parameter
of type :class:`.Context` and can only raise exceptions derived from
of type :class:`.Context` and can only raise exceptions inherited from
:exc:`.CommandError`.
Example
@@ -963,7 +963,7 @@ class Bot(BotBase, discord.Client):
pass
class AutoShardedBot(BotBase, discord.AutoShardedClient):
"""This is similar to :class:`.Bot` except that it is derived from
"""This is similar to :class:`.Bot` except that it is inherited from
:class:`discord.AutoShardedClient` instead.
"""
pass