mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 00:14:45 +01:00
Fix black formatting
This commit is contained in:
parent
d62ba169c9
commit
5061cdd1ee
9 changed files with 5 additions and 10 deletions
2
Pipfile
2
Pipfile
|
@ -6,6 +6,8 @@ verify_ssl = true
|
|||
[packages]
|
||||
Cython = "*"
|
||||
Jinja2 = "*"
|
||||
black = "*"
|
||||
flake8 = "*"
|
||||
pkgconfig = "*"
|
||||
pytest = "*"
|
||||
sphinx = "*"
|
||||
|
|
|
@ -109,7 +109,6 @@ def evaluate_impl(expression, params=None):
|
|||
|
||||
|
||||
class ValueImpl(calculator_capnp.Calculator.Value.Server):
|
||||
|
||||
"Simple implementation of the Calculator.Value Cap'n Proto interface."
|
||||
|
||||
def __init__(self, value):
|
||||
|
@ -167,7 +166,6 @@ class OperatorImpl(calculator_capnp.Calculator.Function.Server):
|
|||
|
||||
|
||||
class CalculatorImpl(calculator_capnp.Calculator.Server):
|
||||
|
||||
"Implementation of the Calculator Cap'n Proto interface."
|
||||
|
||||
def evaluate(self, expression, _context, **kwargs):
|
||||
|
|
|
@ -14,7 +14,6 @@ logger.setLevel(logging.DEBUG)
|
|||
|
||||
|
||||
class ExampleImpl(thread_capnp.Example.Server):
|
||||
|
||||
"Implementation of the Example threading Cap'n Proto interface."
|
||||
|
||||
def subscribeStatus(self, subscriber, **kwargs):
|
||||
|
|
|
@ -113,7 +113,6 @@ def evaluate_impl(expression, params=None):
|
|||
|
||||
|
||||
class ValueImpl(calculator_capnp.Calculator.Value.Server):
|
||||
|
||||
"Simple implementation of the Calculator.Value Cap'n Proto interface."
|
||||
|
||||
def __init__(self, value):
|
||||
|
@ -171,7 +170,6 @@ class OperatorImpl(calculator_capnp.Calculator.Function.Server):
|
|||
|
||||
|
||||
class CalculatorImpl(calculator_capnp.Calculator.Server):
|
||||
|
||||
"Implementation of the Calculator Cap'n Proto interface."
|
||||
|
||||
def evaluate(self, expression, _context, **kwargs):
|
||||
|
|
|
@ -18,7 +18,6 @@ this_dir = os.path.dirname(os.path.abspath(__file__))
|
|||
|
||||
|
||||
class ExampleImpl(thread_capnp.Example.Server):
|
||||
|
||||
"Implementation of the Example threading Cap'n Proto interface."
|
||||
|
||||
def subscribeStatus(self, subscriber, **kwargs):
|
||||
|
|
|
@ -49,7 +49,6 @@ def evaluate_impl(expression, params=None):
|
|||
|
||||
|
||||
class ValueImpl(calculator_capnp.Calculator.Value.Server):
|
||||
|
||||
"Simple implementation of the Calculator.Value Cap'n Proto interface."
|
||||
|
||||
def __init__(self, value):
|
||||
|
@ -107,7 +106,6 @@ class OperatorImpl(calculator_capnp.Calculator.Function.Server):
|
|||
|
||||
|
||||
class CalculatorImpl(calculator_capnp.Calculator.Server):
|
||||
|
||||
"Implementation of the Calculator Cap'n Proto interface."
|
||||
|
||||
def evaluate(self, expression, _context, **kwargs):
|
||||
|
|
|
@ -8,7 +8,6 @@ import thread_capnp
|
|||
|
||||
|
||||
class ExampleImpl(thread_capnp.Example.Server):
|
||||
|
||||
"Implementation of the Example threading Cap'n Proto interface."
|
||||
|
||||
def subscribeStatus(self, subscriber, **kwargs):
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
jinja2
|
||||
black
|
||||
cython
|
||||
flake8
|
||||
setuptools
|
||||
pkgconfig
|
||||
pytest
|
||||
|
|
|
@ -379,7 +379,7 @@ def assert_almost(float1, float2):
|
|||
|
||||
def check_list(reader, expected):
|
||||
assert len(reader) == len(expected)
|
||||
for (i, v) in enumerate(expected):
|
||||
for i, v in enumerate(expected):
|
||||
if type(v) is float:
|
||||
assert_almost(reader[i], v)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue