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
Cannot import loguru.Writable #130
Comments
@phillipuniverse I don't quite this issue belongs to this repository. I suggest submitting this issue to main repository. I am sure @Delgan will do far better work trying to help you. |
Sorry about this! For some reason I thought I was in that repo! I'm re-opening there, thanks! |
New issue at Delgan/loguru#515. |
@phillipuniverse not at all ;-) if there was a misunderstanding you're free to submit a proposal how to improve README.md to make it a bit more obvious. |
Naw we're good, the only proposal would be "make sure that @phillipuniverse's browser is pointing to the repository he intended before he opens an issue" and that doesn't feel like it fits in a README ;) |
LOL cheers bro ;) have fun ;) |
I'm trying to write a simplified type hint for what defines a sink like this:
When I do this, I get the following error:
I am doing this because I have a dynamic expression like this to define a sink:
When I lint this with Mypy though, it does not quite see the correct type of
default_sink
, admittedly a bit of a mypy limitation IMO:But if I type hint
default_sink
like this, mypy is happy with no errors:Buuuut.... my completionist brain is not happy. So 2 questions:
loguru.Writable
is not exposed?loguru.Writable
un-importable, would you consider exposing a newSink
type that I could use likeloguru.Sink
?FWIW I am already using
loguru-mypy
.Thanks for the great library! I have dug in pretty deep to it and appreciate the very intentional design decisions that have been made.
The text was updated successfully, but these errors were encountered: