Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove the new typehint.
  • Loading branch information
gpshead committed Jan 28, 2023
commit 91010c61ac326acda5ca77c2f14e6943fbb08b23
3 changes: 1 addition & 2 deletions Lib/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ def _next_external_frame(frame, skip_file_prefixes):

# Code typically replaced by _warnings
def warn(message, category=None, stacklevel=1, source=None,
*,
skip_file_prefixes: tuple[str, ...] = ()):
*, skip_file_prefixes=()):
"""Issue a warning, or maybe ignore it or raise an exception."""
# Check if message is already a Warning object
if isinstance(message, Warning):
Expand Down