Skip to content

Commit e92ce13

Browse files
committed
Add feature comments in code
1 parent 1d3955c commit e92ce13

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

‎lazyimports/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
)
4545

4646

47-
__version__ = "0.1.2"
47+
__version__ = "0.1.3"
4848

4949
# Lifecycle status marker for this package.
5050
#

‎lazyimports/core.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
all supported Python versions (3.x through 3.15).
1111
"""
1212

13+
# Use python 3.15's new feature :)
14+
__lazy_modules__ = [
15+
"sys",
16+
"contextlib",
17+
]
18+
1319
import contextlib
1420
import importlib
1521
import sys

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "python-lazyimports"
7-
version = "0.1.2"
7+
version = "0.1.3"
88
description = "Backport of Python 3.15's lazy import statement."
99
readme = "README.md"
1010
requires-python = ">=3.6"

‎test_lazyimports.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
python test_lazyimports.py
1414
"""
1515

16+
# A feature again :)
17+
__lazy_modules__ = [
18+
"types",
19+
]
20+
1621
import math
1722
import os
1823
import sys

0 commit comments

Comments
 (0)