Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #1728

Merged
merged 3 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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