DrissionPage/DrissionPage/dynamic_port_allocator.pyi.py
2023-01-13 14:45:15 +08:00

22 lines
419 B
Python

"""
@author: kedaji
"""
class DynamicPortAllocator:
@staticmethod
def allocate(port: int, user_data_path: str) -> tuple: ...
@staticmethod
def get_mapped_user_data_path(port: int) -> str: ...
@staticmethod
def get_mapped_port(user_data_path: str) -> int: ...
@staticmethod
def port_allocated(port: int) -> bool: ...
@staticmethod
def port_occupied(port: int) -> bool: ...