Skip to content

Commit 0a4bdb3

Browse files
committed
Modt of the typing now in place - no working
1 parent cfb0c24 commit 0a4bdb3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1135
-1451
lines changed

.pylintrc

+2
Original file line numberDiff line numberDiff line change
@@ -636,10 +636,12 @@ init-import=no
636636
redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
637637

638638
[MASTER]
639+
639640
disable=
640641
C0114, # missing-module-docstring
641642
C0116, # missing-function-docstring
642643
C0115, # missing class docstring
643644
C0103, # invalid-name
644645
W0718, # broad-exception-caught
645646
W0621, # redefined-outer-name
647+
E1131, # unsupported-binary-operation

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@
33
"neccecery",
44
"pytest",
55
"runserver"
6+
],
7+
"python.analysis.typeCheckingMode": "standard",
8+
"python.analysis.exclude": [
9+
"tmp",
10+
".venv"
611
]
712
}

examples/barchart_example.py

-33
This file was deleted.

examples/form_complex.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from reactpy import component, html, event
1+
from reactpy import component, event, html
22

3-
4-
from examples.pico_run import pico_run
5-
from pages.components.input import Input, Select, RangeSlider, FieldSet
3+
from pages.components.input import FieldSet, Input, RangeSlider, Select
64
from utils.logger import log, logging
5+
from utils.pico_run import pico_run
76

87

98
@component

examples/form_login.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
from typing import Union
12
from pydantic import validator
23
from reactpy import component, html, event
34

45
from reactpy_forms import createForm, FieldModel, FormModel, FieldValidationError, use_form_state
56
from utils.logger import log, logging
6-
from examples.pico_run import pico_run
7+
from utils.pico_run import pico_run
78

89
class LoginFormData(FormModel):
9-
email: str = None
10-
password: str = None
10+
email: Union[str, None] = None
11+
password: Union[str, None] = None
1112

1213

1314
@validator("email")
@@ -18,7 +19,7 @@ def validate_email(cls, value):
1819
return value
1920

2021

21-
@component
22+
# @component
2223
def TextInput(label: str, field: FieldModel, props: dict):
2324

2425
# log.info('TextInput [%s]', field)

examples/hello.py

-18
This file was deleted.

examples/hello_class.py

-21
This file was deleted.

examples/pico_run.py

-29
This file was deleted.

examples/router_test.py

-74
This file was deleted.

0 commit comments

Comments
 (0)