From 6133af1a4e32476baea5a408d0b42a5dcb35952f Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sun, 10 Aug 2025 10:44:01 -0700 Subject: [PATCH] do not use | for Union yet --- dns/btreezone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/btreezone.py b/dns/btreezone.py index 6328577b..afd3005d 100644 --- a/dns/btreezone.py +++ b/dns/btreezone.py @@ -13,7 +13,7 @@ import enum from dataclasses import dataclass -from typing import Callable, MutableMapping, Optional, Tuple, cast +from typing import Callable, MutableMapping, Optional, Tuple, Union, cast import dns.btree import dns.immutable @@ -286,7 +286,7 @@ class ImmutableVersion(dns.zone.Version): self.delegations = version.delegations self.delegations.make_immutable() - def bounds(self, name: dns.name.Name | str) -> Bounds: + def bounds(self, name: Union[dns.name.Name, str]) -> Bounds: """Return the 'bounds' of *name* in its zone. The bounds information is useful when making an authoritative response, as -- 2.47.3