Add one more docstring

This commit is contained in:
rocky
2024-07-12 14:48:07 -04:00
parent ad621efb7a
commit 14993d0af4

View File

@@ -605,6 +605,10 @@ class Scanner(ABC):
def get_scanner(version: Union[str, tuple], is_pypy=False, show_asm=None) -> Scanner: def get_scanner(version: Union[str, tuple], is_pypy=False, show_asm=None) -> Scanner:
"""
Import the right scanner module for ``version`` and return the Scanner class
in that module.
"""
# If version is a string, turn that into the corresponding float. # If version is a string, turn that into the corresponding float.
if isinstance(version, str): if isinstance(version, str):
if version not in canonic_python_version: if version not in canonic_python_version: