@@ -6,14 +6,12 @@ API: Helpers: `pretty_repr`, `pretty_str` and base class `PrettyFormat`.
66.. py :module :: logwrap
77 .. py :currentmodule :: logwrap
88
9- .. py :function :: pretty_repr(src, indent = 0 , no_indent_start = False , max_indent = 20 , indent_step = 4 , py2_str = False , )
9+ .. py :function :: pretty_repr(src, indent = 0 , no_indent_start = False , max_indent = 20 , indent_step = 4 , )
1010
1111 Make human readable repr of object.
1212
1313 :param src: object to process
14- :type src: typing.Union[
15- typing.AnyStr, int, typing.Iterable, object
16- ]
14+ :type src: typing.Any
1715 :param indent: start indentation, all next levels is +indent_step
1816 :type indent: int
1917 :param no_indent_start: do not indent open bracket and simple parameters
@@ -22,22 +20,18 @@ API: Helpers: `pretty_repr`, `pretty_str` and base class `PrettyFormat`.
2220 :type max_indent: int
2321 :param indent_step: step for the next indentation level
2422 :type indent_step: int
25- :param py2_str: use Python 2.x compatible strings instead of unicode
26- :type py2_str: bool
2723 :return: formatted string
2824 :rtype: str
2925
3026
31- .. py :function :: pretty_str(src, indent = 0 , no_indent_start = False , max_indent = 20 , indent_step = 4 , py2_str = False , )
27+ .. py :function :: pretty_str(src, indent = 0 , no_indent_start = False , max_indent = 20 , indent_step = 4 , )
3228
3329 Make human readable str of object.
3430
3531 .. versionadded :: 1.1.0
3632
3733 :param src: object to process
38- :type src: typing.Union[
39- typing.AnyStr, int, typing.Iterable, object
40- ]
34+ :type src: typing.Any
4135 :param indent: start indentation, all next levels is +indent_step
4236 :type indent: int
4337 :param no_indent_start: do not indent open bracket and simple parameters
@@ -46,8 +40,6 @@ API: Helpers: `pretty_repr`, `pretty_str` and base class `PrettyFormat`.
4640 :type max_indent: int
4741 :param indent_step: step for the next indentation level
4842 :type indent_step: int
49- :param py2_str: use Python 2.x compatible strings instead of unicode
50- :type py2_str: bool
5143 :return: formatted string
5244 :rtype: str
5345
@@ -59,14 +51,12 @@ API: Helpers: `pretty_repr`, `pretty_str` and base class `PrettyFormat`.
5951 .. versionadded :: 1.0.2
6052 .. versionchanged :: 3.0.1
6153
62- .. py :method :: __init__ (max_indent = 20 , indent_step = 4 , py2_str = False , )
54+ .. py :method :: __init__ (max_indent = 20 , indent_step = 4 , )
6355
6456 :param max_indent: maximal indent before classic repr() call
6557 :type max_indent: int
6658 :param indent_step: step for the next indentation level
6759 :type indent_step: int
68- :param py2_str: use Python 2.x compatible strings instead of unicode
69- :type py2_str: bool
7060
7161 .. note :: Attributes is read-only
7262
@@ -89,9 +79,7 @@ API: Helpers: `pretty_repr`, `pretty_str` and base class `PrettyFormat`.
8979 Make human readable representation of object.
9080
9181 :param src: object to process
92- :type src: typing.Union[
93- typing.AnyStr, int, typing.Iterable, object
94- ]
82+ :type src: typing.Any
9583 :param indent: start indentation
9684 :type indent: int
9785 :param no_indent_start:
@@ -105,9 +93,7 @@ API: Helpers: `pretty_repr`, `pretty_str` and base class `PrettyFormat`.
10593 Make human readable representation of object. The main entry point.
10694
10795 :param src: object to process
108- :type src: typing.Union[
109- typing.AnyStr, int, typing.Iterable, object
110- ]
96+ :type src: typing.Any
11197 :param indent: start indentation
11298 :type indent: int
11399 :param no_indent_start:
@@ -124,14 +110,12 @@ API: Helpers: `pretty_repr`, `pretty_str` and base class `PrettyFormat`.
124110 .. versionadded :: 3.0.0
125111 .. versionchanged :: 3.0.1
126112
127- .. py :method :: __init__ (max_indent = 20 , indent_step = 4 , py2_str = False , )
113+ .. py :method :: __init__ (max_indent = 20 , indent_step = 4 , )
128114
129115 :param max_indent: maximal indent before classic repr() call
130116 :type max_indent: int
131117 :param indent_step: step for the next indentation level
132118 :type indent_step: int
133- :param py2_str: use Python 2.x compatible strings instead of unicode
134- :type py2_str: bool
135119
136120
137121.. py :class :: PrettyStr(PrettyFormat)
@@ -141,11 +125,9 @@ API: Helpers: `pretty_repr`, `pretty_str` and base class `PrettyFormat`.
141125 .. versionadded :: 3.0.0
142126 .. versionchanged :: 3.0.1
143127
144- .. py :method :: __init__ (max_indent = 20 , indent_step = 4 , py2_str = False , )
128+ .. py :method :: __init__ (max_indent = 20 , indent_step = 4 , )
145129
146130 :param max_indent: maximal indent before classic repr() call
147131 :type max_indent: int
148132 :param indent_step: step for the next indentation level
149133 :type indent_step: int
150- :param py2_str: use Python 2.x compatible strings instead of unicode
151- :type py2_str: bool
0 commit comments