First Check
Commit to Help
Example Code
"""Main module"""
from typing import Optional
from sqlmodel import Field, SQLModel
class Hero(SQLModel, table=True):
id: Optional[int] = Field(default=None, primary_key=True)
name: str
secret_name: str
age: Optional[int] = None
hero_1 = Hero(name="Deadpond", secret_name="Dive Wilson")
hero_2 = Hero(name="Spider-Boy", secret_name="Pedro Parqueador")
hero_3 = Hero(name="Rusty-Man", secret_name='Tom')
a = hero_1.name + 5
Description
https://github.com/tiangolo/sqlmodel/blob/main/docs/index.md#editor-support suggests that inline errors will be automatic. At least in VSCode, they are not. Docs need clarification on how to achieve this.
Wanted Solution
Docs should note that additional vscode config is needed to get inline errors.
Wanted Code
"python.analysis.diagnosticSeverityOverrides": {
"reportGeneralTypeIssues": "information"
}
### Alternatives
_No response_
### Operating System
macOS
### Operating System Details
_No response_
### SQLModel Version
0.0.4
### Python Version
3.9.0
### Additional Context
This is the default result you get using sqlmodel in vscode:
 . And it's different from what the docs state.
First Check
Commit to Help
Example Code
Description
https://github.com/tiangolo/sqlmodel/blob/main/docs/index.md#editor-support suggests that inline errors will be automatic. At least in VSCode, they are not. Docs need clarification on how to achieve this.
Wanted Solution
Docs should note that additional vscode config is needed to get inline errors.
Wanted Code