From 1641f151e409af54367b3b0956fdd47edf94c8e0 Mon Sep 17 00:00:00 2001 From: rht Date: Mon, 7 Aug 2023 07:33:38 -0400 Subject: [PATCH] Apply ruff --fix --- mesa/batchrunner.py | 6 +----- mesa/space.py | 4 +--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/mesa/batchrunner.py b/mesa/batchrunner.py index 6a6679c11a1..8b8aa69c419 100644 --- a/mesa/batchrunner.py +++ b/mesa/batchrunner.py @@ -1,16 +1,12 @@ import itertools +from collections.abc import Iterable, Mapping from functools import partial from multiprocessing import Pool from typing import ( Any, - Dict, - List, Optional, - Tuple, - Type, Union, ) -from collections.abc import Iterable, Mapping from tqdm.auto import tqdm diff --git a/mesa/space.py b/mesa/space.py index 46a4ddb6f92..17aa68cab9d 100644 --- a/mesa/space.py +++ b/mesa/space.py @@ -23,18 +23,16 @@ import collections import itertools import math +from collections.abc import Iterable, Iterator, Sequence from numbers import Real from typing import ( Any, Callable, - List, - Tuple, TypeVar, Union, cast, overload, ) -from collections.abc import Iterable, Iterator, Sequence from warnings import warn import networkx as nx