You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a FolderForm instance, but pyright infers the type as Any
Also tried to install types-WTForms to solve the problem, but it didn't work for me
Actual Behavior
fromwtformsimportForm, StringFieldclassFolderForm(Form):
name=StringField('Name')
form=FolderForm() # form is Any
Expected Behavior
form has the FolderForm type
Environment
Python version: 3.12.4
WTForms version: 3.1.2
types-WTForms version: 3.1.0.20240425
The text was updated successfully, but these errors were encountered:
I'm having the same problem with the VSCode extension Pylance, which uses Pyright.
Versions 24.4.101 pre-release and earlier do not have this problem.
Versions 24.4.102 pre-release, which updates Pyright from 1.1.358 to 1.1.359, and later have this problem.
I'm trying to create a FolderForm instance, but pyright infers the type as Any
Also tried to install types-WTForms to solve the problem, but it didn't work for me
Actual Behavior
Expected Behavior
form
has theFolderForm
typeEnvironment
The text was updated successfully, but these errors were encountered: