Skip to content

Commit 55ba371

Browse files
Fix linting issues
1 parent e724f84 commit 55ba371

File tree

6 files changed

+14
-18
lines changed

6 files changed

+14
-18
lines changed

libsemigroups_pybind11/action.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ def __init__(
219219
)
220220
if not isinstance(seeds, list):
221221
raise TypeError(
222-
"expected the keyword argument 'seeds' to be "
223-
f"a list but found {type(seeds)}"
222+
f"expected the keyword argument 'seeds' to be a list but found {type(seeds)}"
224223
)
225224
if len(generators) == 0:
226225
raise ValueError(
@@ -278,8 +277,8 @@ def generators(self: _Self) -> Iterator[Element]:
278277
for (
279278
_type
280279
) in (
281-
Action._py_template_params_to_cxx_type.values()
282-
): # pylint: disable=protected-access
280+
Action._py_template_params_to_cxx_type.values() # pylint: disable=protected-access
281+
):
283282
_register_cxx_wrapped_type(_type, Action)
284283

285284
########################################################################

libsemigroups_pybind11/adapters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def __call__(self: _Self, pt: Point, x: Element) -> Point:
121121
for (
122122
_type
123123
) in (
124-
ImageRightAction._py_template_params_to_cxx_type.values()
125-
): # pylint:disable=protected-access
124+
ImageRightAction._py_template_params_to_cxx_type.values() # pylint:disable=protected-access
125+
):
126126
_register_cxx_wrapped_type(_type, ImageRightAction)
127127

128128

libsemigroups_pybind11/froidure_pin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ def sorted_elements( # pylint: disable=missing-function-docstring
222222
for (
223223
_fp_type
224224
) in (
225-
FroidurePin._py_template_params_to_cxx_type.values()
226-
): # pylint:disable=protected-access
225+
FroidurePin._py_template_params_to_cxx_type.values() # pylint:disable=protected-access
226+
):
227227
_register_cxx_wrapped_type(_fp_type, FroidurePin)
228228

229229

libsemigroups_pybind11/konieczny.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@ def D_classes(self: Self) -> Iterator:
182182
for (
183183
_type
184184
) in (
185-
Konieczny._py_template_params_to_cxx_type.values()
186-
): # pylint: disable=protected-access
185+
Konieczny._py_template_params_to_cxx_type.values() # pylint: disable=protected-access
186+
):
187187
_register_cxx_wrapped_type(_type, Konieczny)
188188

189189
for (
190190
_type
191191
) in (
192-
Konieczny.DClass._py_template_params_to_cxx_type.values()
193-
): # pylint: disable=protected-access
192+
Konieczny.DClass._py_template_params_to_cxx_type.values() # pylint: disable=protected-access
193+
):
194194
_register_cxx_wrapped_type(_type, Konieczny.DClass)

libsemigroups_pybind11/todd_coxeter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
from typing import List
1616
from typing_extensions import Self as _Self
1717

18-
from _libsemigroups_pybind11 import ( # pylint: disable=no-name-in-module,unused-import
19-
PositiveInfinity,
18+
from _libsemigroups_pybind11 import ( # pylint: disable=no-name-in-module
2019
PresentationStrings as _PresentationStrings,
2120
PresentationWords as _PresentationWords,
2221
ToddCoxeterImpl as _ToddCoxeterImpl,
2322
ToddCoxeterString as _ToddCoxeterString,
2423
ToddCoxeterWord as _ToddCoxeterWord,
25-
Undefined,
2624
WordGraph as _WordGraph,
2725
congruence_kind as _congruence_kind,
2826
todd_coxeter_class_by_index as _todd_coxeter_class_by_index,

libsemigroups_pybind11/tools.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ def compare_version_numbers(supplied, required):
7575

7676
def extra_link_args() -> str:
7777
"""Find extra link args"""
78-
libs_only_L = pkgconfig.libs(
79-
"libsemigroups"
80-
) # pylint: disable=invalid-name
78+
# pylint: disable=invalid-name
79+
libs_only_L = pkgconfig.libs("libsemigroups")
8180
# The above pkgconfig query can return an empty string (this also happens on
8281
# the command line). This happens, for example, using pkg-config version 1.8.0
8382
# on ArchLinux. CN 27/10/2021

0 commit comments

Comments
 (0)