Skip to content

Commit

Permalink
Fix typos (#1728)
Browse files Browse the repository at this point in the history
Co-authored-by: davfsa <[email protected]>
  • Loading branch information
null-domain and davfsa authored Oct 3, 2023
1 parent 43d655c commit 5af6142
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions hikari/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion hikari/events/base_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down
2 changes: 1 addition & 1 deletion hikari/events/scheduled_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = ()

Expand Down
4 changes: 2 additions & 2 deletions hikari/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
4 changes: 2 additions & 2 deletions hikari/scheduled_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand All @@ -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."""
Expand Down

0 comments on commit 5af6142

Please sign in to comment.