mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 22:34:15 -04:00
Bump black
and click
versions (#12320)
This commit is contained in:
parent
6f2943714b
commit
a2b00a4486
16 changed files with 37 additions and 30 deletions
|
@ -496,8 +496,8 @@ class EventFromPduTestCase(TestCase):
|
|||
def test_invalid_numbers(self) -> None:
|
||||
"""Invalid values for an integer should be rejected, all floats should be rejected."""
|
||||
for value in [
|
||||
-(2 ** 53),
|
||||
2 ** 53,
|
||||
-(2**53),
|
||||
2**53,
|
||||
1.0,
|
||||
float("inf"),
|
||||
float("-inf"),
|
||||
|
@ -524,7 +524,7 @@ class EventFromPduTestCase(TestCase):
|
|||
event_from_pdu_json(
|
||||
{
|
||||
"type": EventTypes.Message,
|
||||
"content": {"foo": [{"bar": 2 ** 56}]},
|
||||
"content": {"foo": [{"bar": 2**56}]},
|
||||
"room_id": "!room:test",
|
||||
"sender": "@user:test",
|
||||
"depth": 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue