MagicStack / MagicStack/MagicPython
Type hint Warning
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported example in VS Code 1.55.0 with MagicPython 1.1.0 on the stated Python code. Investigate how the extension handles type hints, and consider the work complete when assigning an int to the string-typed debtor attribute produces an IDE warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100