Skip to content

Commit

Permalink
Fix new pylint 3.0 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Oct 3, 2023
1 parent dfc8fe1 commit 54e385f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ universal = false
ignore-paths = ["src/galois/_version.py"]
disable = [
"comparison-with-callable", # pylint doesn't understand metaclass properties
"duplicate-bases", # pylint is false alarming on this error
"fixme",
"global-statement",
"invalid-name",
Expand Down
2 changes: 1 addition & 1 deletion src/galois/_fields/_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,7 @@ def _display(self, mode: Literal["repr", "str"], separator=", ") -> str:

string = np.array2string(x, separator=separator, prefix=prefix, suffix=suffix, formatter=formatter)

if formatter != {}:
if formatter:
# We are using special print methods and must perform element alignment ourselves. We will print each
# element a second time use the max width of any element observed on the first array2string() call.
field._element_fixed_width = field._element_fixed_width_counter
Expand Down

0 comments on commit 54e385f

Please sign in to comment.