mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Make initial_indent and subsequent_indent AnyStr in wrap() and fill() (#1662)
Leave them alone in TextWrap.__init__(), since I don't want to make the whole class generic.
This commit is contained in:
committed by
Matthias Kramm
parent
6d619e013c
commit
05ffb1f912
@@ -39,8 +39,8 @@ class TextWrapper(object):
|
||||
def wrap(
|
||||
text: AnyStr,
|
||||
width: int = ...,
|
||||
initial_indent: str = ...,
|
||||
subsequent_indent: str = ...,
|
||||
initial_indent: AnyStr = ...,
|
||||
subsequent_indent: AnyStr = ...,
|
||||
expand_tabs: bool = ...,
|
||||
replace_whitespace: bool = ...,
|
||||
fix_sentence_endings: bool = ...,
|
||||
@@ -52,8 +52,8 @@ def wrap(
|
||||
def fill(
|
||||
text: AnyStr,
|
||||
width: int =...,
|
||||
initial_indent: str = ...,
|
||||
subsequent_indent: str = ...,
|
||||
initial_indent: AnyStr = ...,
|
||||
subsequent_indent: AnyStr = ...,
|
||||
expand_tabs: bool = ...,
|
||||
replace_whitespace: bool = ...,
|
||||
fix_sentence_endings: bool = ...,
|
||||
|
||||
Reference in New Issue
Block a user