Skip to content

Commit

Permalink
Pyupgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
calebrob6 committed Sep 19, 2023
1 parent ab7856b commit 297a47e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions torchgeo/datasets/rwanda_field_boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"""Rwanda Field Boundary Competition dataset."""

import os
from typing import Callable, List, Optional, Sequence
from typing import Callable, List, Optional
from collections.abc import Sequence

import matplotlib.pyplot as plt
import numpy as np
Expand Down Expand Up @@ -118,8 +119,8 @@ def __init__(
self.checksum = checksum
self._verify()

self.image_filenames: List[List[List[str]]] = []
self.mask_filenames: List[str] = []
self.image_filenames: list[list[list[str]]] = []
self.mask_filenames: list[str] = []
for i in range(self.number_of_patches_per_split[split]):
dates = []
for date in self.dates:
Expand Down

0 comments on commit 297a47e

Please sign in to comment.