Skip to content

Commit

Permalink
STY: Try to make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
IngridKJ committed Feb 18, 2025
1 parent 1c2f7d0 commit b8d3d9a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/porepy/grids/md_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from __future__ import annotations

from collections.abc import Mapping
from typing import Any, Callable, Iterable, Literal, Optional, Union, overload

import numpy as np
Expand Down Expand Up @@ -697,11 +698,11 @@ def copy(self) -> MixedDimensionalGrid:

def replace_subdomains_and_interfaces(
self,
sd_map: Optional[dict[pp.Grid, pp.Grid]] = None,
sd_map: Optional[Mapping[pp.Grid, pp.Grid]] = None,
intf_map: Optional[
dict[
Mapping[
pp.MortarGrid,
Union[pp.MortarGrid, dict[mortar_grid.MortarSides, pp.Grid]],
Union[pp.MortarGrid, Mapping[mortar_grid.MortarSides, pp.Grid]],
]
] = None,
tol: float = 1e-6,
Expand Down Expand Up @@ -976,7 +977,7 @@ def __repr__(self) -> str:
for sd in self.subdomains(dim=dim):
num_sd += 1
nc += sd.num_cells
s += f"{num_sd} grids of dimension {dim}" f" with in total {nc} cells\n"
s += f"{num_sd} grids of dimension {dim} with in total {nc} cells\n"
if self.num_interfaces() > 0:
for dim in range(self.dim_max(), self.dim_min(), -1):
num_intf = 0
Expand Down

0 comments on commit b8d3d9a

Please sign in to comment.