Loading src/types/strings.py +0 −9 Changes for src/types/strings.py: 0 added lines, 9 removed lines. Original line number Diff line number Diff line #!/usr/bin/env python3 # Standard libraries from random import choices from string import ascii_letters, digits from typing import List # Components Loading Loading @@ -43,13 +41,6 @@ class Strings: # Adaptive quotes return '\'' + string.replace('\'', '\\\'') + '\'' # Random @staticmethod def random(length: int) -> str: # pragma: no cover # Generate random string return ''.join(choices(ascii_letters + digits, k=length)) # Wrap @staticmethod def wrap(string: str, length: int) -> List[str]: Loading Loading
src/types/strings.py +0 −9 Changes for src/types/strings.py: 0 added lines, 9 removed lines. Original line number Diff line number Diff line #!/usr/bin/env python3 # Standard libraries from random import choices from string import ascii_letters, digits from typing import List # Components Loading Loading @@ -43,13 +41,6 @@ class Strings: # Adaptive quotes return '\'' + string.replace('\'', '\\\'') + '\'' # Random @staticmethod def random(length: int) -> str: # pragma: no cover # Generate random string return ''.join(choices(ascii_letters + digits, k=length)) # Wrap @staticmethod def wrap(string: str, length: int) -> List[str]: Loading