Skip to content

Commit

Permalink
Improve docs for internal _F class
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Oct 7, 2021
1 parent 6d6b01a commit d266763
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/lsst/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@

class _F:
"""
Format, supporting str.format() syntax
see using-custom-message-objects in logging-cookbook.html
Format, supporting `str.format()` syntax.
Notes
-----
This follows the recommendation from
https://docs.python.org/3/howto/logging-cookbook.html#using-custom-message-objects
"""
def __init__(self, fmt: str, /, *args: Any, **kwargs: Any):
self.fmt = fmt
Expand Down

0 comments on commit d266763

Please sign in to comment.