-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathnumpy.vader
64 lines (50 loc) · 971 Bytes
/
numpy.vader
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# vim:set et sw=4 ts=4 tw=79:
Execute (Setup template formatter):
Save g:pydocstring_formatter
let g:pydocstring_formatter = 'numpy'
Given python (def foo):
def foo():
pass
Execute:
:Pydocstring
:sleep 1
Expect python:
def foo():
"""foo.
"""
pass
Given python (def foo with 1 param):
def foo(arg):
pass
Execute:
:Pydocstring
:sleep 500m
Expect python:
def foo(arg):
"""foo.
Parameters
----------
arg :
arg
"""
pass
Given python (def foo with 2 params and type hints):
def foo(arg1: str, arg2: int) -> int:
pass
Execute:
:Pydocstring
:sleep 500m
Expect python:
def foo(arg1: str, arg2: int) -> int:
"""foo.
Parameters
----------
arg1 : str
arg1
arg2 : int
arg2
Returns
-------
int
"""
pass