File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ pip install pyprintf
46
46
The primary formatting function that mimics C-style ` sprintf ` behavior with Python enhancements.
47
47
48
48
** Parameters:**
49
- - ` format_str ` (str): Format string containing text and placeholders
49
+ - ` format ` (str): Format string containing text and placeholders
50
50
- ` *args ` (Any): Variable arguments to format (positional or keyword)
51
51
52
52
** Returns:**
53
53
- ` str ` : Formatted string according to specifiers
54
54
55
55
** Signature:**
56
56
``` python
57
- def sprintf (format_str : str , * args : Any) -> str
57
+ def sprintf (format : str , * args : Any) -> str :
58
58
```
59
59
60
60
** Example:**
@@ -76,16 +76,16 @@ Array-accepting variant of `sprintf` for pre-collected arguments.
76
76
77
77
*** Parameters:***
78
78
79
- * ` format_str ` (str): Format string with placeholders
80
- * ` argv ` (Iterable [ Any] ): Collection of arguments to format
79
+ - ` format ` (str): Format string containing text and placeholders
80
+ - ` *args ` (Any): Variable arguments to format (positional or keyword)
81
81
82
82
*** Return Value:***
83
83
84
84
- ` str ` : Formatted string according to specifiers
85
85
86
86
** Signature:**
87
87
``` python
88
- def vsprintf (format_str : str , argv : Iterable[ Any] ) -> str
88
+ def vsprintf (format : str , * args : Any) -> str :
89
89
```
90
90
91
91
### Difference between ` sprintf ` and ` vsprintf `
You can’t perform that action at this time.
0 commit comments