mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
[pickle] Fix value of pickle.DEFAULT_PROTOCOL for Python <3.14 (#15446)
This commit is contained in:
+5
-1
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from _pickle import (
|
||||
PickleError as PickleError,
|
||||
Pickler as Pickler,
|
||||
@@ -103,7 +104,10 @@ __all__ = [
|
||||
]
|
||||
|
||||
HIGHEST_PROTOCOL: Final = 5
|
||||
DEFAULT_PROTOCOL: Final = 5
|
||||
if sys.version_info >= (3, 14):
|
||||
DEFAULT_PROTOCOL: Final = 5
|
||||
else:
|
||||
DEFAULT_PROTOCOL: Final = 4
|
||||
|
||||
bytes_types: tuple[type[Any], ...] # undocumented
|
||||
|
||||
|
||||
Reference in New Issue
Block a user