From 092d9132f0e9a693ce0765384c3e09f1e8a638e7 Mon Sep 17 00:00:00 2001 From: nulldomain Date: Tue, 3 Oct 2023 16:15:07 +0100 Subject: [PATCH 1/2] Fix typos --- hikari/internal/enums.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hikari/internal/enums.py b/hikari/internal/enums.py index 7394e09952..9307e8ef2d 100644 --- a/hikari/internal/enums.py +++ b/hikari/internal/enums.py @@ -565,18 +565,18 @@ class Flag(metaclass=_FlagMeta): ----------------------------- * `e1 & e2` : Bitwise `AND` operation. Will return a member that contains all flags - that are common between both oprands on the values. This also works with - one of the oprands being an `int`eger. You may instead use + that are common between both operands on the values. This also works with + one of the operands being an `int`eger. You may instead use the `intersection` method. * `e1 | e2` : Bitwise `OR` operation. Will return a member that contains all flags - that appear on at least one of the oprands. This also works with - one of the oprands being an `int`eger. You may instead use + that appear on at least one of the operands. This also works with + one of the operands being an `int`eger. You may instead use the `union` method. * `e1 ^ e2` : Bitwise `XOR` operation. Will return a member that contains all flags - that only appear on at least one and at most one of the oprands. - This also works with one of the oprands being an `int`eger. + that only appear on at least one and at most one of the operands. + This also works with one of the operands being an `int`eger. You may instead use the `symmetric_difference` method. * `~e` : Return the inverse of this value. This is equivalent to disabling all From f39dac87adbeb9104c96b00604ee6aabd6edb4bd Mon Sep 17 00:00:00 2001 From: nulldomain Date: Tue, 3 Oct 2023 16:30:57 +0100 Subject: [PATCH 2/2] Fix more typos --- 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."""