Browse Source

Fix some spelling mistakes

pull/7631/merge
Neon Jonn 3 years ago
committed by GitHub
parent
commit
adb69e7157
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/ISSUE_TEMPLATE/bug_report.yml
  2. 2
      discord/channel.py
  3. 8
      discord/ext/commands/help.py
  4. 2
      discord/ui/item.py
  5. 10
      discord/utils.py

2
.github/ISSUE_TEMPLATE/bug_report.yml

@ -64,7 +64,7 @@ body:
attributes:
label: Checklist
description: >
Let's make sure you've properly done due dilligence when reporting this issue!
Let's make sure you've properly done due diligence when reporting this issue!
options:
- label: I have searched the open issues for duplicates.
required: true

2
discord/channel.py

@ -742,7 +742,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
reason: :class:`str`
The reason for creating a new thread. Shows up on the audit log.
invitable: :class:`bool`
Whether non-modertators can add users to the thread. Only applicable to private threads.
Whether non-moderators can add users to the thread. Only applicable to private threads.
Defaults to ``True``.
slowmode_delay: Optional[:class:`int`]
Specifies the slowmode rate limit for user in this channel, in seconds.

8
discord/ext/commands/help.py

@ -182,8 +182,8 @@ class Paginator:
return fmt.format(self)
def _not_overriden(f):
f.__help_command_not_overriden__ = True
def _not_overridden(f):
f.__help_command_not_overridden__ = True
return f
@ -201,7 +201,7 @@ class _HelpCommandImpl(Command):
self.params = get_signature_parameters(injected.command_callback, globals(), skip_parameters=1)
on_error = injected.on_help_command_error
if not hasattr(on_error, '__help_command_not_overriden__'):
if not hasattr(on_error, '__help_command_not_overridden__'):
if self.cog is not None:
self.on_error = self._on_error_cog_implementation
else:
@ -643,7 +643,7 @@ class HelpCommand:
destination = self.get_destination()
await destination.send(error)
@_not_overriden
@_not_overridden
async def on_help_command_error(self, ctx, error):
"""|coro|

2
discord/ui/item.py

@ -123,7 +123,7 @@ class Item(Generic[V]):
The callback associated with this UI item.
This can be overriden by subclasses.
This can be overridden by subclasses.
Parameters
-----------

10
discord/utils.py

@ -239,10 +239,10 @@ def parse_time(timestamp: Optional[str]) -> Optional[datetime.datetime]:
def copy_doc(original: Callable) -> Callable[[T], T]:
def decorator(overriden: T) -> T:
overriden.__doc__ = original.__doc__
overriden.__signature__ = _signature(original) # type: ignore
return overriden
def decorator(overridden: T) -> T:
overridden.__doc__ = original.__doc__
overridden.__signature__ = _signature(original) # type: ignore
return overridden
return decorator
@ -1076,7 +1076,7 @@ def is_inside_class(func: Callable[..., Any]) -> bool:
# denoting which class it belongs to. So, e.g. for A.foo the qualname
# would be A.foo while a global foo() would just be foo.
#
# Unfortuately, for nested functions this breaks. So inside an outer
# Unfortunately, for nested functions this breaks. So inside an outer
# function named outer, those two would end up having a qualname with
# outer.<locals>.A.foo and outer.<locals>.foo

Loading…
Cancel
Save