Skip to content

Commit

Permalink
Bump ruff from 0.1.14 to 0.3.2 (#16994)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Mar 13, 2024
1 parent e161103 commit 9b5eef9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 27 deletions.
38 changes: 19 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ all = [
# This helps prevents merge conflicts when running a batch of dependabot updates.
isort = ">=5.10.1"
black = ">=22.7.0"
ruff = "0.1.14"
ruff = "0.3.2"
# Type checking only works with the pydantic.v1 compat module from pydantic v2
pydantic = "^2"

Expand Down
7 changes: 0 additions & 7 deletions synapse/synapse_rust/events.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ class EventInternalMetadata:
(Added in synapse 0.99.0, so may be unreliable for events received before that)
"""
...

def get_send_on_behalf_of(self) -> Optional[str]:
"""Whether this server should send the event on behalf of another server.
Expand All @@ -65,7 +64,6 @@ class EventInternalMetadata:
returns a str with the name of the server this event is sent on behalf of.
"""
...

def need_to_check_redaction(self) -> bool:
"""Whether the redaction event needs to be rechecked when fetching
Expand All @@ -77,7 +75,6 @@ class EventInternalMetadata:
If the sender of the redaction event is allowed to redact any event
due to auth rules, then this will always return false.
"""
...

def is_soft_failed(self) -> bool:
"""Whether the event has been soft failed.
Expand All @@ -88,7 +85,6 @@ class EventInternalMetadata:
2. They should not be added to the forward extremities (and
therefore not to current state).
"""
...

def should_proactively_send(self) -> bool:
"""Whether the event, if ours, should be sent to other clients and
Expand All @@ -97,16 +93,13 @@ class EventInternalMetadata:
This is used for sending dummy events internally. Servers and clients
can still explicitly fetch the event.
"""
...

def is_redacted(self) -> bool:
"""Whether the event has been redacted.
This is used for efficiently checking whether an event has been
marked as redacted without needing to make another database call.
"""
...

def is_notifiable(self) -> bool:
"""Whether this event can trigger a push notification"""
...

0 comments on commit 9b5eef9

Please sign in to comment.