Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7806c63

Browse files
authored
fix(pydoc): change prefixes from" to# (rafamadriz#452)
`"` prefixes cause problems due to autopairs plugins (there exessive `"` after snippets), change them to `#` from rdoc
1 parent4b442e5 commit7806c63

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎snippets/python/pydoc.json‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"comment": {
3-
"prefix":"\"\"\"",
3+
"prefix":"###",
44
"body": [
55
"\"\"\"",
66
"${1:A one-line summary.}",
@@ -21,7 +21,7 @@
2121
"description":"A Python docstring for functions and methods, including short summary, details, args, returns, and examples. This docstring is an synonym of\"\"\"function."
2222
},
2323
"comment simple": {
24-
"prefix":"\"\"",
24+
"prefix":"##",
2525
"body": [
2626
"\"\"\"",
2727
"${1:A one-line summary.}",
@@ -32,7 +32,7 @@
3232
"description":"A simple Python docstring comment. Useful when you prefer to add the docstrings manually on functions."
3333
},
3434
"module docstring": {
35-
"prefix":"\"\"\"module",
35+
"prefix":"###module",
3636
"body": [
3737
"\"\"\"",
3838
"${1:A one-line summary.}",
@@ -47,7 +47,7 @@
4747
"description":"A Python docstring for modules, including a one-line summary, details, and example."
4848
},
4949
"test module docstring": {
50-
"prefix":"\"\"\"test",
50+
"prefix":"###test",
5151
"body": [
5252
"\"\"\"",
5353
"${1:A one-line summary.}",
@@ -58,7 +58,7 @@
5858
"description":"Module-level docstrings for test files are not required. They should be included only when there is additional information that can be provided.\n\nExamples include some specifics on how the test should be run, an explanation of an unusual setup pattern, dependency on the external environment, and so on. Docstrings that do not provide any new information should not be used, such as\"\"\"Tests for foo.bar.\"\"\""
5959
},
6060
"function docstring": {
61-
"prefix":"\"\"\"function",
61+
"prefix":"###function",
6262
"body": [
6363
"\"\"\"",
6464
"${1:A one-line summary.}",
@@ -79,7 +79,7 @@
7979
"description":"A Python docstring for functions and methods, including short summary, details, args, returns, and example."
8080
},
8181
"function docstring typed": {
82-
"prefix":"\"\"\"function_typed",
82+
"prefix":"###function_typed",
8383
"body": [
8484
"\"\"\"",
8585
"${1:A one-line summary.}",
@@ -100,7 +100,7 @@
100100
"description":"Alternative Python docstring for functions and methods, with a different type syntax. Some teams prefer it."
101101
},
102102
"generator docstring": {
103-
"prefix":"\"\"\"generator",
103+
"prefix":"###generator",
104104
"body": [
105105
"\"\"\"",
106106
"${1:A one-line summary.}",
@@ -121,7 +121,7 @@
121121
"description":"A Python docstring for generator methods, including a one-line summary, details, parameters, yields, and example. It is the same, but it has yields instead of returns."
122122
},
123123
"class docstring": {
124-
"prefix":"\"\"\"class",
124+
"prefix":"###class",
125125
"body": [
126126
"\"\"\"",
127127
"${1:A one-line summary.}",
@@ -135,7 +135,7 @@
135135
"description":"A Python docstring for classes, including a one-line summary, details, attributes, and returns."
136136
},
137137
"exception docstring": {
138-
"prefix":"\"\"\"exception",
138+
"prefix":"###exception",
139139
"body": [
140140
"\"\"\"",
141141
"${1:A one-line summary.}",
@@ -149,7 +149,7 @@
149149
"description":"A Python docstring for exceptions, including a one-line summary, description, and attributes."
150150
},
151151
"raises docstring": {
152-
"prefix":"\n\n\nraises",
152+
"prefix":"###raises",
153153
"body": [
154154
"Raises:",
155155
" ${1:ErrorName}: ${2:Error description.}$0"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp