Skip to content

Commit 248ce05

Browse files
committed
Add stubs for "click-web" package
1 parent 98f070a commit 248ce05

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

Diff for: pyrightconfig.stricter.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"stubs/caldav",
3939
"stubs/cffi",
4040
"stubs/click-default-group",
41+
"stubs/click-web",
4142
"stubs/commonmark",
4243
"stubs/corus",
4344
"stubs/dateparser",

Diff for: stubs/click-web/METADATA.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
version = "0.8.*"
2+
upstream_repository = "https://github.com/fredrik-corneliusson/click-web"

Diff for: stubs/click-web/click_web/__init__.pyi

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import types
2+
3+
import click
4+
import flask
5+
import jinja2
6+
7+
jinja_env: jinja2.Environment
8+
9+
def create_click_web_app(module: types.ModuleType, command: click.BaseCommand, root: str = "/") -> flask.Flask: ...

Diff for: stubs/click-web/click_web/exceptions.pyi

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ClickWebException(Exception): ...
2+
class CommandNotFound(ClickWebException): ...

Diff for: stubs/click-web/click_web/web_click_types.pyi

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import typing as t
2+
3+
import click
4+
5+
class EmailParamType(click.ParamType):
6+
def convert(self, value: t.Any, param: click.Parameter | None, ctx: click.Context | None) -> t.Any: ...
7+
8+
class PasswordParamType(click.ParamType):
9+
def convert(self, value: t.Any, param: click.Parameter | None, ctx: click.Context | None) -> t.Any: ...
10+
11+
class TextAreaParamType(click.ParamType):
12+
def convert(self, value: t.Any, param: click.Parameter | None, ctx: click.Context | None) -> t.Any: ...
13+
14+
EMAIL_TYPE: EmailParamType
15+
PASSWORD_TYPE: PasswordParamType
16+
TEXTAREA_TYPE: TextAreaParamType

0 commit comments

Comments
 (0)