Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type hint Warning #234

Open
RuboGubo opened this issue Apr 4, 2021 · 0 comments
Open

Type hint Warning #234

RuboGubo opened this issue Apr 4, 2021 · 0 comments

Comments

@RuboGubo
Copy link

RuboGubo commented Apr 4, 2021

Issue Type: Feature Request

@DataClass
class Entity:
TotalValue: float
debtor: str
creditor: str

x = Entity(3.2, 'George', 'Fred')

x.debtor = 8

The IDE does not warn you that you have used an int instead of a string despite type hint

Extension version: 1.1.0
VS Code version: Code 1.55.0 (c185983a683d14c396952dd432459097bc7f757f, 2021-03-30T16:01:55.261Z)
OS version: Windows_NT x64 10.0.19042

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant