mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Add typing to pycharm templates
This commit is contained in:
parent
eef56a5d48
commit
21ad1b7e73
2 changed files with 7 additions and 4 deletions
|
@ -1,13 +1,15 @@
|
||||||
|
from typing import *
|
||||||
import royalnet
|
import royalnet
|
||||||
from royalnet.commands import *
|
import royalnet.commands as rc
|
||||||
|
|
||||||
|
|
||||||
#set($CAPITALIZED_NAME = $NAME.substring(0,1).toUpperCase() + $NAME.substring(1))
|
#set($CAPITALIZED_NAME = $NAME.substring(0,1).toUpperCase() + $NAME.substring(1))
|
||||||
class ${CAPITALIZED_NAME}Command(Command):
|
class ${CAPITALIZED_NAME}Command(rc.Command):
|
||||||
name: str = "$NAME"
|
name: str = "$NAME"
|
||||||
|
|
||||||
description: str = ""
|
description: str = ""
|
||||||
|
|
||||||
syntax: str = ""
|
syntax: str = ""
|
||||||
|
|
||||||
async def run(self, args: CommandArgs, data: CommandData) -> None:
|
async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None:
|
||||||
...
|
...
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
from typing import *
|
from typing import *
|
||||||
from royalnet.commands import *
|
import royalnet
|
||||||
|
import royalnet.commands as rc
|
||||||
|
|
||||||
|
|
||||||
#set($CAPITALIZED_NAME = $NAME.substring(0,1).toUpperCase() + $NAME.substring(1))
|
#set($CAPITALIZED_NAME = $NAME.substring(0,1).toUpperCase() + $NAME.substring(1))
|
||||||
|
|
Loading…
Reference in a new issue