Skip to content

Commit

Permalink
remove future import from .pyx files
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Jan 9, 2023
1 parent a5809f2 commit ce9fe2e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
16 changes: 7 additions & 9 deletions pymatgen/optimization/linear_assignment.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@
This module contains an algorithm to solve the Linear Assignment Problem
"""


from __future__ import annotations

__author__ = "Will Richards"
__copyright__ = "Copyright 2011, The Materials Project"
__version__ = "1.0"
__maintainer__ = "Will Richards"
__email__ = "wrichards@mit.edu"
__date__ = "Jan 28, 2013"
# isort: dont-add-imports

import numpy as np

Expand All @@ -19,6 +11,12 @@ cimport numpy as np
from libc.math cimport fabs
from libc.stdlib cimport free, malloc

__author__ = "Will Richards"
__copyright__ = "Copyright 2011, The Materials Project"
__version__ = "1.0"
__maintainer__ = "Will Richards"
__email__ = "wrichards@mit.edu"
__date__ = "Jan 28, 2013"

class LinearAssignment:
"""
Expand Down
2 changes: 1 addition & 1 deletion pymatgen/optimization/neighbors.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# cython: profile=True
# distutils: language = c

from __future__ import annotations
# isort: dont-add-imports

import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion pymatgen/util/coord_cython.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Utilities for manipulating coordinates or list of coordinates, under periodic
boundary conditions or otherwise.
"""

from __future__ import annotations
# isort: dont-add-imports

__author__ = "Will Richards"
__copyright__ = "Copyright 2011, The Materials Project"
Expand Down

0 comments on commit ce9fe2e

Please sign in to comment.