run lint with pyupgrade at py39-plus

This commit is contained in:
pacrob
2025-01-25 15:31:51 -07:00
committed by Paul Robinson
parent 20580b9a4e
commit 8787613e91
44 changed files with 221 additions and 240 deletions

View File

@ -4,11 +4,12 @@ from abc import (
ABC,
abstractmethod,
)
from collections.abc import (
Hashable,
)
from typing import (
Any,
Hashable,
Optional,
Set,
)
import trio_typing
@ -45,7 +46,7 @@ class TaskAPI(Hashable):
class TaskWithChildrenAPI(TaskAPI):
children: Set[TaskAPI]
children: set[TaskAPI]
@abstractmethod
def add_child(self, child: TaskAPI) -> None: