Skip to content

Commit

Permalink
Rever to use Union for older Python support
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson committed Oct 14, 2024
1 parent 3b69903 commit 4f5f031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kr8s/_portforward.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import socket
import sys
from contextlib import asynccontextmanager, suppress
from typing import TYPE_CHECKING, AsyncGenerator, Literal
from typing import TYPE_CHECKING, AsyncGenerator, Literal, Union

import anyio
import httpx_ws
Expand All @@ -17,7 +17,7 @@
from ._exceptions import ConnectionClosedError
from ._types import APIObjectWithPods

LocalPortType = Literal["match", "auto"] | int | None
LocalPortType = Union[Literal["match", "auto"], int, None]

if TYPE_CHECKING:
from ._objects import APIObject
Expand Down

0 comments on commit 4f5f031

Please sign in to comment.