FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MagicPython/snippets/sublime/New-Class.sublime-snippet at readme · MagicStack/MagicPython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
MagicStack
/
MagicPython
Public
Notifications
You must be signed in to change notification settings
Fork
98
Star
1.4k
Code
Issues
65
Pull requests
5
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
MagicPython
/
snippets
/
sublime
/
New-Class.sublime-snippet
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (9 loc) · 445 Bytes
Breadcrumbs
MagicPython
/
snippets
/
sublime
/
New-Class.sublime-snippet
Copy path
File metadata and controls
9 lines (9 loc) · 445 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
<
snippet
>
<
content
>
<![CDATA[
class ${1:ClassName}(${2:object}):
${3/.+/"""/}${3:docstring for $1}${3/.+/"""\n/}${3/.+/\t/}def __init__(self${4/([^,])?(.*)/(?1:, )/}${4:arg}):
${5:super($1, self).__init__()}
${4/(\A\s*,\s*\Z)|,?\s*([A-Za-z_][a-zA-Z0-9_]*)\s*(=[^,]*)?(,\s*|$)/(?2:\t\tself.$2 = $2\n)/g} $0
]]>
</
content
>
<
tabTrigger
>class</
tabTrigger
>
<
scope
>source.python</
scope
>
<
description
>New Class</
description
>
</
snippet
>
Back
|
FazBrowse Home
|
New Git URL