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

No scopes for built-in types #55

Closed
chbk opened this issue Nov 10, 2019 · 2 comments
Closed

No scopes for built-in types #55

chbk opened this issue Nov 10, 2019 · 2 comments
Labels

Comments

@chbk
Copy link

chbk commented Nov 10, 2019

Tree-sitter-python doesn't provide scopes for built-in types like Tree-sitter-java.

Built-in types are: bool, bytearray, bytes, complex, dict, float, frozenset, int, list, memoryview, object, range, set, str, tuple.

Documentation.

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.62. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the bug label Nov 10, 2019
@patrickt
Copy link
Contributor

I think this is intentional, as unlike Java, the names of built-in types can be overridden, so there’s no way to know that an occurrence of str necessarily refers to the Python str.

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

No branches or pull requests

2 participants