mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
add (overwrite with) mypy stubs, if available
This commit is contained in:
27
stdlib/3/string.pyi
Normal file
27
stdlib/3/string.pyi
Normal file
@@ -0,0 +1,27 @@
|
||||
# Stubs for string
|
||||
|
||||
# Based on http://docs.python.org/3.2/library/string.html
|
||||
|
||||
from typing import Mapping
|
||||
|
||||
ascii_letters = ''
|
||||
ascii_lowercase = ''
|
||||
ascii_uppercase = ''
|
||||
digits = ''
|
||||
hexdigits = ''
|
||||
octdigits = ''
|
||||
punctuation = ''
|
||||
printable = ''
|
||||
whitespace = ''
|
||||
|
||||
def capwords(s: str, sep: str = None) -> str: ...
|
||||
|
||||
class Template:
|
||||
template = ''
|
||||
|
||||
def __init__(self, template: str) -> None: ...
|
||||
def substitute(self, mapping: Mapping[str, str], **kwds: str) -> str: ...
|
||||
def safe_substitute(self, mapping: Mapping[str, str],
|
||||
**kwds: str) -> str: ...
|
||||
|
||||
# TODO Formatter
|
||||
Reference in New Issue
Block a user