mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
stdlib: new signature for CDLL in 3.12 (#13313)
This commit is contained in:
11
stdlib/@tests/test_cases/ctypes/check_CDLL.py
Normal file
11
stdlib/@tests/test_cases/ctypes/check_CDLL.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import ctypes
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing_extensions import assert_type
|
||||
|
||||
assert_type(ctypes.CDLL(None), ctypes.CDLL)
|
||||
assert_type(ctypes.CDLL("."), ctypes.CDLL)
|
||||
|
||||
# https://github.com/python/cpython/pull/7032
|
||||
if sys.version_info >= (3, 12):
|
||||
assert_type(ctypes.CDLL(Path(".")), ctypes.CDLL)
|
||||
Reference in New Issue
Block a user