Mark Bakhit

Results 316 comments of Mark Bakhit
trafficstars

the `script` element is definitely not appropriate for complex tasks such as read/write/modify the client side indexed_db.

Currently getting type hint errors on the component decorator, if `str()` is directly returned within a component. Or if a component is directly returned within a component.

VDOM constructor type hints currently don't like `None`.

Yeah, for example a conditional to return a component or `None` within a div tag.

It's also still very annoying that I can't directly return a component within a component without type hint errors.

``` Argument of type "None" cannot be assigned to parameter "attributes_and_children" of type "VdomAttributesAndChildren" in function "__call__" Type "None" cannot be assigned to type "VdomAttributesAndChildren" Type "None" cannot be assigned...

Yes those errors are pylance specific, using "basic" type checking. I'll post the required vscode settings after work.

In the vscode `settings.json` ```json { "python.analysis.typeCheckingMode": "basic", "python.languageServer": "Pylance", }