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

Built-in keywords on dataclasses #222

Open
TylerYep opened this issue Aug 20, 2020 · 0 comments
Open

Built-in keywords on dataclasses #222

TylerYep opened this issue Aug 20, 2020 · 0 comments

Comments

@TylerYep
Copy link

@TylerYep TylerYep commented Aug 20, 2020

  • Editor name and version: VS Code July 1.48.1 (latest)
  • Platform: OS X
  • Color scheme: One Dark Pro
  • MagicPython version: VS Code's version
  • 5-10 lines of surrounding code:
@dataclass
class SkipListNode(Generic[KT, VT]):
    key: KT
    value: VT
    next: List[SkipListNode[KT, VT]] = field(default_factory=list)
  • A screenshot:

Screen Shot 2020-08-20 at 1 51 02 PM

In the screenshot, next is highlighted as a keyword. However, I don't believe that it should be, as it will only ever be accessed as self.next or SkipListNode.next.

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.