mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Consistent use of ABC instead of ABCMeta where possible
This commit is contained in:
parent
ffd78be628
commit
d5b54e8cb5
11 changed files with 24 additions and 25 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from abc import ABCMeta, abstractmethod
|
||||
from abc import ABC, abstractmethod
|
||||
from collections.abc import Iterable, Callable
|
||||
from functools import reduce
|
||||
from itertools import zip_longest
|
||||
|
|
@ -56,7 +56,7 @@ def sum_functions(funcs):
|
|||
return Polynomial(coeffs)
|
||||
|
||||
|
||||
class Function1D(EqualityMixin, metaclass=ABCMeta):
|
||||
class Function1D(EqualityMixin, ABC):
|
||||
"""A function of one independent variable with HDF5 support."""
|
||||
@abstractmethod
|
||||
def __call__(self): pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue