Restore Python 3.10 compatibility
This commit is contained in:
@@ -21,7 +21,6 @@ import contextlib
|
||||
import hashlib
|
||||
import socket
|
||||
import ssl
|
||||
from typing import Self
|
||||
|
||||
from pyVim.connect import Disconnect, SmartConnect
|
||||
from pyVmomi import vim
|
||||
@@ -395,7 +394,7 @@ class NfcAuthSession:
|
||||
finally:
|
||||
Disconnect(self.si)
|
||||
|
||||
def __enter__(self) -> Self:
|
||||
def __enter__(self) -> NfcAuthSession:
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc, tb) -> None:
|
||||
|
||||
@@ -25,7 +25,6 @@ import os
|
||||
import socket
|
||||
import ssl
|
||||
import struct
|
||||
from typing import Self
|
||||
|
||||
from openvixdisklib import fastlz
|
||||
from openvixdisklib.nfc_auth import NfcAuthSession, _ssl_client_context
|
||||
@@ -385,7 +384,7 @@ class NfcDisk:
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
def __enter__(self) -> Self:
|
||||
def __enter__(self) -> NfcDisk:
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc, tb) -> None:
|
||||
|
||||
Reference in New Issue
Block a user