address flake8 format check

This commit is contained in:
Yian Chen
2024-04-09 15:31:05 -07:00
committed by Jacob Alexander
parent 1fb168796d
commit 78dd54e641
11 changed files with 16 additions and 24 deletions

View File

@@ -251,12 +251,12 @@ Person = _reflection.GeneratedProtocolMessageType(
(_message.Message,), (_message.Message,),
dict( dict(
DESCRIPTOR=_PERSON_PHONENUMBER, DESCRIPTOR=_PERSON_PHONENUMBER,
__module__="addressbook_pb2" __module__="addressbook_pb2",
# @@protoc_insertion_point(class_scope:tutorial.Person.PhoneNumber) # @@protoc_insertion_point(class_scope:tutorial.Person.PhoneNumber)
), ),
), ),
DESCRIPTOR=_PERSON, DESCRIPTOR=_PERSON,
__module__="addressbook_pb2" __module__="addressbook_pb2",
# @@protoc_insertion_point(class_scope:tutorial.Person) # @@protoc_insertion_point(class_scope:tutorial.Person)
), ),
) )
@@ -268,7 +268,7 @@ AddressBook = _reflection.GeneratedProtocolMessageType(
(_message.Message,), (_message.Message,),
dict( dict(
DESCRIPTOR=_ADDRESSBOOK, DESCRIPTOR=_ADDRESSBOOK,
__module__="addressbook_pb2" __module__="addressbook_pb2",
# @@protoc_insertion_point(class_scope:tutorial.AddressBook) # @@protoc_insertion_point(class_scope:tutorial.AddressBook)
), ),
) )

View File

@@ -675,7 +675,7 @@ ParkingLot = _reflection.GeneratedProtocolMessageType(
(_message.Message,), (_message.Message,),
dict( dict(
DESCRIPTOR=_PARKINGLOT, DESCRIPTOR=_PARKINGLOT,
__module__="carsales_pb2" __module__="carsales_pb2",
# @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.ParkingLot) # @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.ParkingLot)
), ),
) )
@@ -686,7 +686,7 @@ TotalValue = _reflection.GeneratedProtocolMessageType(
(_message.Message,), (_message.Message,),
dict( dict(
DESCRIPTOR=_TOTALVALUE, DESCRIPTOR=_TOTALVALUE,
__module__="carsales_pb2" __module__="carsales_pb2",
# @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.TotalValue) # @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.TotalValue)
), ),
) )
@@ -697,7 +697,7 @@ Car = _reflection.GeneratedProtocolMessageType(
(_message.Message,), (_message.Message,),
dict( dict(
DESCRIPTOR=_CAR, DESCRIPTOR=_CAR,
__module__="carsales_pb2" __module__="carsales_pb2",
# @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.Car) # @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.Car)
), ),
) )
@@ -708,7 +708,7 @@ Wheel = _reflection.GeneratedProtocolMessageType(
(_message.Message,), (_message.Message,),
dict( dict(
DESCRIPTOR=_WHEEL, DESCRIPTOR=_WHEEL,
__module__="carsales_pb2" __module__="carsales_pb2",
# @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.Wheel) # @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.Wheel)
), ),
) )
@@ -719,7 +719,7 @@ Engine = _reflection.GeneratedProtocolMessageType(
(_message.Message,), (_message.Message,),
dict( dict(
DESCRIPTOR=_ENGINE, DESCRIPTOR=_ENGINE,
__module__="carsales_pb2" __module__="carsales_pb2",
# @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.Engine) # @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.Engine)
), ),
) )

View File

@@ -144,7 +144,7 @@ SearchResultList = _reflection.GeneratedProtocolMessageType(
(_message.Message,), (_message.Message,),
dict( dict(
DESCRIPTOR=_SEARCHRESULTLIST, DESCRIPTOR=_SEARCHRESULTLIST,
__module__="catrank_pb2" __module__="catrank_pb2",
# @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.SearchResultList) # @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.SearchResultList)
), ),
) )
@@ -155,7 +155,7 @@ SearchResult = _reflection.GeneratedProtocolMessageType(
(_message.Message,), (_message.Message,),
dict( dict(
DESCRIPTOR=_SEARCHRESULT, DESCRIPTOR=_SEARCHRESULT,
__module__="catrank_pb2" __module__="catrank_pb2",
# @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.SearchResult) # @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.SearchResult)
), ),
) )

View File

@@ -218,7 +218,7 @@ Expression = _reflection.GeneratedProtocolMessageType(
(_message.Message,), (_message.Message,),
dict( dict(
DESCRIPTOR=_EXPRESSION, DESCRIPTOR=_EXPRESSION,
__module__="eval_pb2" __module__="eval_pb2",
# @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.Expression) # @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.Expression)
), ),
) )
@@ -229,7 +229,7 @@ EvaluationResult = _reflection.GeneratedProtocolMessageType(
(_message.Message,), (_message.Message,),
dict( dict(
DESCRIPTOR=_EVALUATIONRESULT, DESCRIPTOR=_EVALUATIONRESULT,
__module__="eval_pb2" __module__="eval_pb2",
# @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.EvaluationResult) # @@protoc_insertion_point(class_scope:capnp.benchmark.protobuf.EvaluationResult)
), ),
) )

View File

@@ -31,6 +31,7 @@ Example Usage::
for phone in person.phones: for phone in person.phones:
print(phone.type, ':', phone.number) print(phone.type, ':', phone.number)
""" """
# flake8: noqa F401 F403 F405 # flake8: noqa F401 F403 F405
from .version import version as __version__ from .version import version as __version__
from .lib.capnp import * from .lib.capnp import *

View File

@@ -1,6 +1,7 @@
""" """
Docs configuration Docs configuration
""" """
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# capnp documentation build configuration file, created by # capnp documentation build configuration file, created by

View File

@@ -8,7 +8,6 @@ import calculator_capnp
class PowerFunction(calculator_capnp.Calculator.Function.Server): class PowerFunction(calculator_capnp.Calculator.Function.Server):
"""An implementation of the Function interface wrapping pow(). Note that """An implementation of the Function interface wrapping pow(). Note that
we're implementing this on the client side and will pass a reference to we're implementing this on the client side and will pass a reference to
the server. The server will then be able to make calls back to the client.""" the server. The server will then be able to make calls back to the client."""

View File

@@ -53,7 +53,6 @@ class ValueImpl(calculator_capnp.Calculator.Value.Server):
class FunctionImpl(calculator_capnp.Calculator.Function.Server): class FunctionImpl(calculator_capnp.Calculator.Function.Server):
"""Implementation of the Calculator.Function Cap'n Proto interface, where the """Implementation of the Calculator.Function Cap'n Proto interface, where the
function is defined by a Calculator.Expression.""" function is defined by a Calculator.Expression."""
@@ -72,7 +71,6 @@ class FunctionImpl(calculator_capnp.Calculator.Function.Server):
class OperatorImpl(calculator_capnp.Calculator.Function.Server): class OperatorImpl(calculator_capnp.Calculator.Function.Server):
"""Implementation of the Calculator.Function Cap'n Proto interface, wrapping """Implementation of the Calculator.Function Cap'n Proto interface, wrapping
basic binary arithmetic operators.""" basic binary arithmetic operators."""

View File

@@ -14,7 +14,6 @@ this_dir = os.path.dirname(os.path.abspath(__file__))
class PowerFunction(calculator_capnp.Calculator.Function.Server): class PowerFunction(calculator_capnp.Calculator.Function.Server):
"""An implementation of the Function interface wrapping pow(). Note that """An implementation of the Function interface wrapping pow(). Note that
we're implementing this on the client side and will pass a reference to we're implementing this on the client side and will pass a reference to
the server. The server will then be able to make calls back to the client.""" the server. The server will then be able to make calls back to the client."""

View File

@@ -58,7 +58,6 @@ class ValueImpl(calculator_capnp.Calculator.Value.Server):
class FunctionImpl(calculator_capnp.Calculator.Function.Server): class FunctionImpl(calculator_capnp.Calculator.Function.Server):
"""Implementation of the Calculator.Function Cap'n Proto interface, where the """Implementation of the Calculator.Function Cap'n Proto interface, where the
function is defined by a Calculator.Expression.""" function is defined by a Calculator.Expression."""
@@ -77,7 +76,6 @@ class FunctionImpl(calculator_capnp.Calculator.Function.Server):
class OperatorImpl(calculator_capnp.Calculator.Function.Server): class OperatorImpl(calculator_capnp.Calculator.Function.Server):
"""Implementation of the Calculator.Function Cap'n Proto interface, wrapping """Implementation of the Calculator.Function Cap'n Proto interface, wrapping
basic binary arithmetic operators.""" basic binary arithmetic operators."""

View File

@@ -235,9 +235,7 @@ def test_from_bytes_traversal_limit(all_types):
for i in range(0, size): for i in range(0, size):
msg.structList[i].uInt8Field == 0 msg.structList[i].uInt8Field == 0
with all_types.TestAllTypes.from_bytes( with all_types.TestAllTypes.from_bytes(data, traversal_limit_in_words=2**62) as msg:
data, traversal_limit_in_words=2**62
) as msg:
for i in range(0, size): for i in range(0, size):
assert msg.structList[i].uInt8Field == 0 assert msg.structList[i].uInt8Field == 0
@@ -253,8 +251,6 @@ def test_from_bytes_packed_traversal_limit(all_types):
for i in range(0, size): for i in range(0, size):
msg.structList[i].uInt8Field == 0 msg.structList[i].uInt8Field == 0
msg = all_types.TestAllTypes.from_bytes_packed( msg = all_types.TestAllTypes.from_bytes_packed(data, traversal_limit_in_words=2**62)
data, traversal_limit_in_words=2**62
)
for i in range(0, size): for i in range(0, size):
assert msg.structList[i].uInt8Field == 0 assert msg.structList[i].uInt8Field == 0