Python lint: Ruff rules for comprehensions and performance (#512)

This commit is contained in:
Christian Clauss
2025-04-15 16:58:33 +02:00
committed by GitHub
parent 8c9269c34b
commit babb477dff
6 changed files with 15 additions and 14 deletions

View File

@@ -42,7 +42,7 @@ async def test_server_base64_encoding_issue():
# Create binary data that will definitely result in + and / characters
# when encoded with standard base64
binary_data = bytes([x for x in range(255)] * 4)
binary_data = bytes(list(range(255)) * 4)
# Register a resource handler that returns our test data
@server.read_resource()