Skip to content

Commit dc2b16b

Browse files
committed
Remove >=py310 only union syntax
1 parent 6356b2a commit dc2b16b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

duckdb_packaging/pypi_cleanup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from collections.abc import Generator
2020
from enum import Enum
2121
from html.parser import HTMLParser
22-
from typing import Optional
22+
from typing import Optional, Union
2323
from urllib.parse import urlparse
2424

2525
import pyotp
@@ -172,7 +172,7 @@ def __init__(self, target: str) -> None: # noqa: D107
172172
self.csrf = None # Result value from all forms on page
173173
self._in_form = False # Currently parsing a form with an action we're interested in
174174

175-
def handle_starttag(self, tag: str, attrs: list[tuple[str, str | None]]) -> None: # noqa: D102
175+
def handle_starttag(self, tag: str, attrs: list[tuple[str, Union[str, None]]]) -> None: # noqa: D102
176176
if not self.csrf:
177177
if tag == "form":
178178
attrs = dict(attrs)

0 commit comments

Comments
 (0)