1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Add typing to pycharm templates

This commit is contained in:
Steffo 2020-01-30 19:33:27 +01:00
parent eef56a5d48
commit 21ad1b7e73
2 changed files with 7 additions and 4 deletions

View file

@ -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:
... ...

View file

@ -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))