Repository navigation
fix: export Logger type from cve_bin_tool.log - #6189
Closed
sergiodaleste2-byte wants to merge 1 commit into
Closed
sergiodaleste2-byte wants to merge 1 commit into
sergiodaleste2-byte wants to merge 1 commit into
Conversation
Signed-off-by: sergiodaleste2-byte <sergiodaleste2-byte@users.noreply.github.com>
sergiodaleste2-byte
force-pushed
the
fix-2870-logger-type
branch
from
December 4, 2026 12:45
efe4b73 to
6279d7e
Compare
Collaborator
|
The issue this PR references (#2870) was already resolved by commit The current implementation already explicitly annotates LOGGER: logging.Logger = logging.getLogger(__package__)This PR only re-exports the standard-library Could you clarify the intended use case for this additional public API? In particular, what problem does exporting I don't think the original issue provides sufficient justification for this change. |
Author
|
Thank you for the clarification, @ffontaine! I hadn't noticed that #2870
was already addressed in `bb3ff32` since the issue was still open.
Given that the typing is already properly handled, there's no need to
expand the public API with an extra export. I'll go ahead and close this
PR. Thanks for your time!
Em sex., 4 de dez. de 2026, 10:24, Fabrice Fontaine <
***@***.***> escreveu:
… *ffontaine* left a comment (ossf/cve-bin-tool#6189)
<#6189 (comment)>
The issue this PR references (#2870
<#2870>) was already resolved
by commit bb3ff32, merged on November 14, 2026.
The current implementation already explicitly annotates LOGGER as
logging.Logger:
LOGGER: logging.Logger = logging.getLogger(__package__)
This PR only re-exports the standard-library logging.Logger class from
cve_bin_tool.log, without changing the existing logger typing.
Could you clarify the intended use case for this additional public API? In
particular, what problem does exporting Logger solve that is not already
addressed by the merged fix?
I don't think the original issue provides sufficient justification for
this change.
—
Reply to this email directly, view it on GitHub
<#6189?email_source=notifications&email_token=CNGZEBDQ3Z6T3SICTBHMFVT54K3HNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTONBRGI4DCOBUGQ22M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-7412818445>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CNGZEBCDGYCGEY2OCKVRQSL54K3HNAVCNFSNUABFKJSXA33TNF2G64TZHMYTMNJTGEZTSNRRHNEXG43VMU5TMNZZGIZTAMBRGQ3KC5QC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2870
Summary
Loggerclass fromlogginginsidecve_bin_tool/log.pyand include it in__all__.from cve_bin_tool.log import Loggeras a valid type annotation without triggeringmypyerrors ("cve_bin_tool.log.LOGGER" is not a valid type).