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

inlay hints should use namespaces #973

Open
KotlinIsland opened this issue Jan 1, 2025 · 0 comments
Open

inlay hints should use namespaces #973

KotlinIsland opened this issue Jan 1, 2025 · 0 comments

Comments

@KotlinIsland
Copy link
Collaborator

my_datetime: datetime = dt.datetime.fromisoformat(my_str)
In this case, : datetime is an inlay hint, but it should be dt.datetime to namespace correctly. Might be nicer to read dt.datetime too, so that it matches how you're using it in the code (dt.datetime.fromisoformat).

--
Currently also has an effect if e.g. using the mouse to copy code with inlay hints, from a terminal to a repl, which then fails on the repl due to invalid type hint.

Originally posted by @npip99 in #198 (comment)

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

No branches or pull requests

1 participant