17 lines
255 B
Python
17 lines
255 B
Python
|
from __future__ import annotations
|
||
|
|
||
|
import sys
|
||
|
|
||
|
|
||
|
if sys.version_info >= (3, 11):
|
||
|
from tomllib import TOMLDecodeError, load, loads
|
||
|
else:
|
||
|
from tomli import TOMLDecodeError, load, loads
|
||
|
|
||
|
|
||
|
__all__ = [
|
||
|
'TOMLDecodeError',
|
||
|
'load',
|
||
|
'loads',
|
||
|
]
|