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
commit babb477dff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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()