Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tighten annotation of logging.getLevelName (python#12088)
To better reflect the implementation's behaviour, python#2730 changed `logging.getLevelName` to accept `int | str` and return `Any` (the latter due to the need to avoid union return types). However, this isn't ideal if you're passing in an `int`, in which case the implementation always returns a `str`. Add overloads for this.
- Loading branch information