Skip to content
Discussion options

You must be logged in to vote

As best as I've been able to tell, this is an issue with pyright/pylance. I see it too when using pyright in Emacs. I'm finding I have to give pyright a helping hand like this:

name: reactive[str | None] = reactive[str | None](None)

or, to be compatible with some older supported Pythons:

name: reactive[str | None] = reactive[Optional[str]](None)

(assuming Optional is imported from typing).

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@davetapley
Comment options

@TomJGooding
Comment options

@davetapley
Comment options

@davetapley
Comment options

Answer selected by davep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1976 on March 08, 2023 08:13.