Skip to content

Commit

Permalink
fix flake8 and mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorBaratta committed Jan 4, 2024
1 parent c5b2000 commit 1146e62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ffcx/codegeneration/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import logging

import ufl
from typing import List, Optional
from typing import List
import ffcx.codegeneration.lnodes as L
from ffcx.ir.elementtables import UniqueTableReferenceT
from ffcx.ir.representationutils import QuadratureRule
Expand Down Expand Up @@ -94,7 +94,8 @@ def get(self, mt, tabledata, quadrature_rule, access):
# Call the handler
return handler(mt, tabledata, quadrature_rule, access)

def coefficient(self, mt: ModifiedTerminal, tabledata: UniqueTableReferenceT, quadrature_rule: QuadratureRule, access: str):
def coefficient(self, mt: ModifiedTerminal, tabledata: UniqueTableReferenceT,
quadrature_rule: QuadratureRule, access: str):
"""Return definition code for coefficients."""
# For applying tensor product to coefficients, we need to know if the coefficient
# has a tensor factorisation and if the quadrature rule has a tensor factorisation.
Expand Down
2 changes: 1 addition & 1 deletion ffcx/codegeneration/integral_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def generate_partition(self, symbol, F, mode, quadrature_rule):
# Backend specific modified terminal translation
vaccess = self.backend.access.get(mt, tabledata, quadrature_rule)
predef, vdef = self.backend.definitions.get(mt, tabledata, quadrature_rule, vaccess)

if isinstance(predef, L.Section):
predef = predef.statements

Expand Down
2 changes: 1 addition & 1 deletion ffcx/codegeneration/lnodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# SPDX-License-Identifier: LGPL-3.0-or-later

from typing import List, Optional, Tuple
from typing import List, Optional
import numbers
import ufl
import numpy as np
Expand Down

0 comments on commit 1146e62

Please sign in to comment.