From: Bob Halley Date: Sun, 10 Aug 2025 17:44:01 +0000 (-0700) Subject: do not use | for Union yet X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6133af1a4e32476baea5a408d0b42a5dcb35952f;p=thirdparty%2Fdnspython.git do not use | for Union yet --- 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