From 5af6142cb2b8e83784ca2a076680f6a4663abe44 Mon Sep 17 00:00:00 2001 From: nulldomain Date: Tue, 3 Oct 2023 16:47:38 +0100 Subject: [PATCH] Fix typos (#1728) Co-authored-by: davfsa --- hikari/errors.py | 4 ++-- hikari/events/base_events.py | 2 +- hikari/events/scheduled_events.py | 2 +- hikari/locales.py | 4 ++-- hikari/scheduled_events.py | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hikari/errors.py b/hikari/errors.py index e8bfd35b31..1bdacaf732 100644 --- a/hikari/errors.py +++ b/hikari/errors.py @@ -66,7 +66,7 @@ from hikari.internal import routes -# The standard exceptions are all unsloted so slotting here would be a waste of time. +# The standard exceptions are all unslotted so slotting here would be a waste of time. @attrs_extensions.with_copy @attrs.define(auto_exc=True, repr=False, init=False, slots=False) class HikariError(RuntimeError): @@ -79,7 +79,7 @@ class HikariError(RuntimeError): """ -# The standard warnings are all unsloted so slotting here would be a waste of time. +# The standard warnings are all unslotted so slotting here would be a waste of time. @attrs_extensions.with_copy @attrs.define(auto_exc=True, repr=False, init=False, slots=False) class HikariWarning(RuntimeWarning): diff --git a/hikari/events/base_events.py b/hikari/events/base_events.py index 66e71cc3fc..f26ba0d67f 100644 --- a/hikari/events/base_events.py +++ b/hikari/events/base_events.py @@ -228,7 +228,7 @@ def shard(self) -> typing.Optional[gateway_shard.GatewayShard]: def exc_info(self) -> typing.Tuple[typing.Type[Exception], Exception, typing.Optional[types.TracebackType]]: """Exception triplet that follows the same format as `sys.exc_info`. - The `sys.exc_info` tiplet consists of the exception type, the exception + The `sys.exc_info` triplet consists of the exception type, the exception instance, and the traceback of the exception. """ return type(self.exception), self.exception, self.exception.__traceback__ diff --git a/hikari/events/scheduled_events.py b/hikari/events/scheduled_events.py index 97d54aee06..19d1136d8d 100644 --- a/hikari/events/scheduled_events.py +++ b/hikari/events/scheduled_events.py @@ -51,7 +51,7 @@ @base_events.requires_intents(intents.Intents.GUILD_SCHEDULED_EVENTS) class ScheduledEventEvent(shard_events.ShardEvent, abc.ABC): - """Event bassed for any scheduled event related events.""" + """Event base for any scheduled event related events.""" __slots__: typing.Sequence[str] = () diff --git a/hikari/locales.py b/hikari/locales.py index 988477c6d0..76d5affa3d 100644 --- a/hikari/locales.py +++ b/hikari/locales.py @@ -77,10 +77,10 @@ class Locale(str, enums.Enum): """Polish.""" PT_BR = "pt-BR" - """Portuguese, Bralizian.""" + """Portuguese, Brazilian.""" RO = "ro" - """Romian.""" + """Romanian.""" FI = "fi" """Finnish.""" diff --git a/hikari/scheduled_events.py b/hikari/scheduled_events.py index 5ffb662a14..170861432b 100644 --- a/hikari/scheduled_events.py +++ b/hikari/scheduled_events.py @@ -67,7 +67,7 @@ class ScheduledEventType(int, enums.Enum): """A scheduled stage instance.""" VOICE = 2 - """A scheculed voice chat event.""" + """A scheduled voice chat event.""" EXTERNAL = 3 """A scheduled event which takes part outside of Discord.""" @@ -80,7 +80,7 @@ class ScheduledEventStatus(int, enums.Enum): """Indicates that the scheduled event hasn't occurred yet.""" ACTIVE = 2 - """Indicates an eventis on-going.""" + """Indicates an event is on-going.""" COMPLETED = 3 """Indicates an event has finished."""