From: John Mulligan Date: Wed, 1 Apr 2026 22:22:51 +0000 (-0400) Subject: python-common/ceph/smb: add typing shim file X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=67bc5faa39a4af0f31cf39e0da0c62838138482f;p=ceph.git python-common/ceph/smb: add typing shim file Avoid having to put this in a bunch of files in our new ceph.smb.ctl files. Signed-off-by: John Mulligan --- diff --git a/src/python-common/ceph/smb/ctl/_typing.py b/src/python-common/ceph/smb/ctl/_typing.py new file mode 100644 index 00000000000..bad05abd223 --- /dev/null +++ b/src/python-common/ceph/smb/ctl/_typing.py @@ -0,0 +1,12 @@ +"""Typing helpers""" + +import typing + +import sys + +if sys.version_info >= (3, 11): + from typing import Self +elif typing.TYPE_CHECKING: + from typing_extensions import Self +else: + Self = typing.Any