Skip to content

Commit

Permalink
Run pyupgrade for Python 3.9+
Browse files Browse the repository at this point in the history
Apply pyupgrade for Python 3.9+
  • Loading branch information
EwoutH committed Jul 10, 2024
1 parent 81acf33 commit d0323f6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion rtree/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import pickle
import pprint
import warnings
from typing import Any, Iterator, Literal, Sequence, overload
from collections.abc import Iterator, Sequence
from typing import Any, Literal, overload

from . import core
from .exceptions import RTreeError
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import os
import shutil
from typing import Iterator
from collections.abc import Iterator

import py
import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys
import tempfile
import unittest
from typing import Iterator
from collections.abc import Iterator

import numpy as np
import pytest
Expand Down
3 changes: 2 additions & 1 deletion tests/test_tpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
import os
import unittest
from collections import defaultdict, namedtuple
from collections.abc import Iterator
from math import ceil
from typing import Any, Iterator
from typing import Any

import numpy as np
from numpy.random import default_rng
Expand Down

0 comments on commit d0323f6

Please sign in to comment.