For an example of this see typeshed/stdlib/heapq.pyi at aab5cc601db53c4d3c72869c1257aa39bf88670f · python/typeshed · GitHub
if sys.version_info >= (3, 14):
# Added to __all__ in 3.14.1
__all__ += ["heapify_max", "heappop_max", "heappush_max", "heappushpop_max", "heapreplace_max"]