@@ -431,35 +431,35 @@ def warn_deprecated(
431
431
) -> None :
432
432
"""Display a standardized deprecation.
433
433
434
- Arguments :
435
- since : str
434
+ Args :
435
+ since:
436
436
The release at which this API became deprecated.
437
- message : str, optional
437
+ message:
438
438
Override the default deprecation message. The %(since)s,
439
439
%(name)s, %(alternative)s, %(obj_type)s, %(addendum)s,
440
440
and %(removal)s format specifiers will be replaced by the
441
441
values of the respective arguments passed to this function.
442
- name : str, optional
442
+ name:
443
443
The name of the deprecated object.
444
- alternative : str, optional
444
+ alternative:
445
445
An alternative API that the user may use in place of the
446
446
deprecated API. The deprecation warning will tell the user
447
447
about this alternative if provided.
448
- alternative_import: str, optional
448
+ alternative_import:
449
449
An alternative import that the user may use instead.
450
- pending : bool, optional
450
+ pending:
451
451
If True, uses a PendingDeprecationWarning instead of a
452
452
DeprecationWarning. Cannot be used together with removal.
453
- obj_type : str, optional
453
+ obj_type:
454
454
The object type being deprecated.
455
- addendum : str, optional
455
+ addendum:
456
456
Additional text appended directly to the final message.
457
- removal : str, optional
457
+ removal:
458
458
The expected removal version. With the default (an empty
459
459
string), a removal version is automatically computed from
460
460
since. Set to other Falsy values to not schedule a removal
461
461
date. Cannot be used together with pending.
462
- package: str, optional
462
+ package:
463
463
The package of the deprecated object.
464
464
"""
465
465
if not pending :
0 commit comments