Blaze
30c9af5aaa
Add listener attribute to QueueHandler ( #12986 )
2024-11-08 05:55:03 -08:00
Brian Schubert
951c0b82e8
Update logging.config.fileConfig to accept any Mapping for defaults ( #12973 )
2024-11-07 13:12:24 -08:00
Brian Schubert
ab8e0e1ca1
Fix return type of logging.config.BaseConfigurator.as_tuple ( #12817 )
2024-10-15 19:54:48 +01:00
Peter Bierma
ae15dd3158
Restore the deprecated logging.warn() in 3.13 ( #12509 )
2024-08-10 23:52:20 +03:00
Max Muoto
9a77f6006d
Use Final for undocumented constants ( #12450 )
2024-07-28 12:02:06 +02:00
Max Muoto
8ac4af63cd
Final for logging constants ( #12453 )
2024-07-28 11:58:30 +02:00
Sebastian Rittau
dc504f5175
Deprecate logging.getLevelName(str) ( #12093 )
...
See https://docs.python.org/3/library/logging.html#logging.getLevelName
2024-06-20 00:43:46 -07:00
Colin Watson
97ccd8985a
Tighten annotation of logging.getLevelName ( #12088 )
...
To better reflect the implementation's behaviour,
https://github.com/python/typeshed/pull/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.
2024-06-04 10:16:53 +02:00
muamerp
10bf03bd38
Change type of logging.RotatingFileHandler.maxBytes from str to int ( #12045 )
2024-05-27 13:34:34 +02:00
Alex Waygood
ac6c61ba04
Stubtest stdlib: unpin 3.11 and 3.12 micro versions ( #12022 )
2024-05-23 13:24:28 -07:00
Alex Waygood
b8d144d491
Add 3.13 to our CI ( #11926 )
2024-05-19 16:18:49 -04:00
Shantanu
2756f16a11
logging: update for py313 ( #11972 )
2024-05-18 14:49:22 -07:00
Shantanu
d9cf43c4c3
Mark pos-only __class_getitem__ args ( #11970 )
2024-05-18 23:27:51 +02:00
Ed Younis
3e3fd0dd86
Changed logging.lastResort type to Handler ( #11872 )
2024-05-07 14:55:01 +02:00
Alex Waygood
d0f2be92ab
Bump pyright to v1.1.360 ( #11810 )
2024-04-24 14:09:16 +02:00
Ismail S
a20f54663c
Add taskName to LogRecord ( #11609 )
2024-03-15 15:34:13 +01:00
Shantanu
470a13ab09
Use PEP 570 syntax in stdlib ( #11250 )
2024-03-09 14:50:16 -08:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Sebastian Rittau
3a036b64fc
logging: Remove hack obsoleted by PEP 655 (#11078 )
2023-11-30 21:48:54 +00:00
Anthony Sottile
53592e421a
set root for logging dict config to be non-None ( #11077 )
2023-11-28 20:21:19 +01:00
Jens Tröger
590f89b594
logging: Add a _FilterProtocol type to Filterer.addFilter() filter argument. ( #11018 )
2023-11-14 11:14:19 +02:00
Tomás Farías Santana
a76978b28f
Add _thread attribute for logging.handlers.QueueListener ( #10747 )
2023-09-22 01:54:19 +03:00
kasium
ab22048661
py312: Filter(er) might return a LogRecord ( #10540 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-08-07 15:30:33 +01:00
Nikita Sobolev
161dd4b34f
Update logging for 3.12 ( #10538 )
2023-08-07 12:02:44 +01:00
Nikita Korolev
7ffb7cef69
SysLogHandler facility could be a string ( #10206 )
...
It is possible to pass syslog facility as string to __init__ too
2023-05-24 19:46:37 -07:00
Alex Waygood
d1bfd08b4b
Allow passing multiprocessing.Queues to QueueListener/QueueHandler ( #10169 )
2023-05-10 17:06:41 +02:00
Tomas R
a7748a9dd1
Add missing stubs for logging.config ( #10055 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-04-27 07:57:46 -07:00
Nikita Sobolev
cd3f52ac14
Simplify logging.config type imports ( #10077 )
2023-04-24 14:41:10 +03:00
Amin Alaee
b6564d976b
logging.LogRecord: improve annotation for msg (#9914 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-03-21 15:40:37 +00:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Alex Waygood
b0dc6a3405
Add defaults to logging.LoggerAdapter methods ( #9797 )
2023-02-22 11:50:11 +01:00
Alex Waygood
fbc092b4cd
Stdlib: add defaults for several functions that delegate kwargs to other functions at runtime ( #9791 )
2023-02-21 23:31:25 -08:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Alex Waygood
0ef9c3f8e8
Enable flake8-pyi's Y037 ( #9686 )
2023-02-06 19:01:02 -08:00
Alex Waygood
33a62ae42d
Add more defaults to the stdlib ( #9606 )
...
Continuing work towards #8988 .
The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:
- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
Jelle Zijlstra
ddfaca3200
stdlib: add argument default values ( #9501 )
2023-01-18 09:37:34 +01:00
Kalle Møller
6b23df3db6
Update _FilterType to retuning bool ( #9514 )
2023-01-16 16:12:40 +01:00
Jelle Zijlstra
4d40fc6c8a
logging: StreamHandler.send takes ReadableBuffer ( #9057 )
2022-11-01 11:52:30 +01:00
Nikita Sobolev
380022c650
Remove empty __init__ methods ( #8816 )
2022-09-30 13:08:41 +01:00
Nikita Sobolev
0259068ad6
Remove duplicate definitions in sub-classes ( #8594 )
2022-08-26 17:10:55 +02:00
Alex Waygood
6348a58b8b
Import Match and Pattern from re, not typing ( #8277 )
2022-07-12 15:32:48 +02:00
Alex Waygood
edc0ecd857
Remove Python 3.6 branches from typeshed ( #8269 )
2022-07-11 10:55:17 +02:00
Alex Waygood
1aa5663f9e
Add __setattr__ to logging.LogRecord ( #8064 )
2022-06-12 12:04:22 -07:00
Alex Waygood
e88a182573
Simplify __all__ definitions in modules beginning with 'a' to 'l' ( #8026 )
2022-06-07 15:40:48 +02:00
Alex Waygood
43a9ab08d7
Always use TypeAlias when assigning to Any ( #8021 )
2022-06-05 18:16:20 -07:00
Alex Waygood
acc0167dc1
Fix several new-in-3.11 stubtest errors ( #7973 )
2022-06-02 18:07:38 -07:00
Alex Waygood
171ea08f0d
Add __class_getitem__ to classes in logging and csv ( #7830 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-05-17 14:12:42 +01:00
Jelle Zijlstra
9effb643b3
logging.LoggerAdapter: Use a bound TypeVar ( #7763 )
2022-05-02 08:56:32 +02:00
Alex Waygood
b093c90a94
Use TypeAlias for type aliases where possible, part II ( #7667 )
2022-04-20 20:02:47 +01:00