Skip to content

Commit ef7efb3

Browse files
authored
Remove an unused local variable (#279)
LGTM flagged this up in another PR, submitting separately keeps the comment noise down. Flake8 also flagged it.
1 parent 29e14cb commit ef7efb3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

galgebra/metric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def _build_derivatives_of_basis(self): # Derivatives of basis vectors from Chri
440440

441441
n_range = self.n_range
442442

443-
self.dg = dg = self.derivatives_of_g()
443+
self.dg = self.derivatives_of_g()
444444

445445
self._init_connect_flg()
446446

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ per-file-ignores =
3737
./galgebra/ga.py:E266
3838

3939
# F821 undefined name 'Mv'
40-
# F841 local variable 'dg' is assigned to but never used
41-
./galgebra/metric.py:F821,F841
40+
./galgebra/metric.py:F821
4241

4342
# E266 too many leading '#' for block comment
4443
./galgebra/mv.py:E266

0 commit comments

Comments
 (0)