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

Issue when using type hints and classes with full namespace references #32

Closed
to2false opened this issue Apr 19, 2017 · 7 comments
Closed

Comments

@to2false
Copy link

I follow the document said, but it doesn't work. It can work above class and over function with a new line.

@neild3r
Copy link
Owner

neild3r commented Apr 19, 2017

I don't understand. Could you submit some screenshots to help me understand what you mean?

@to2false
Copy link
Author

image

image

@neild3r
Copy link
Owner

neild3r commented Apr 20, 2017

Thanks, it could be the \ in the type hint let me try it it out and see if I can replicate

@neild3r neild3r changed the title Why it can't work above the function? Issue when using type hints and classes with full namespace references Apr 20, 2017
@neild3r
Copy link
Owner

neild3r commented Apr 20, 2017

OK I've replicated the issue, I'll add some test cases now and see if we can get this sorted for you. I've never had the issue because I always use use statements even for root classes

@neild3r
Copy link
Owner

neild3r commented Apr 20, 2017

The fix has now been merged, I was planning on releasing a new version today so this will be included within

@to2false
Copy link
Author

Thank you. 😄

@neild3r
Copy link
Owner

neild3r commented Apr 20, 2017

No problem, the new version has now been released so you should be able to get the update soon. Thanks for raising the issue.

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

2 participants