Update version number to 0.3.16

This commit is contained in:
shenjack 2024-01-07 18:33:55 +08:00
parent a318ca62e8
commit 3957cf5a29
Signed by: shenjack
GPG Key ID: 7B1134A979775551
3 changed files with 5 additions and 4 deletions

View File

@ -6,7 +6,7 @@ A python lib came from [Difficult Rocket](https://github.com/shenjackyuanjie/Dif
## Information/信息 ## Information/信息
- Version / 版本: 0.3.15 - Version / 版本: 0.3.16
- Author / 作者: shenjackyuanjie <3695888@qq.com> - Author / 作者: shenjackyuanjie <3695888@qq.com>
[shenjackyuanjie](https://github.com/shenjackyuanjie) [shenjackyuanjie](https://github.com/shenjackyuanjie)

View File

@ -9,7 +9,7 @@ from typing import TYPE_CHECKING
if TYPE_CHECKING: if TYPE_CHECKING:
from lib_not_dr import loggers, nuitka, types, command from lib_not_dr import loggers, nuitka, types, command
_version_ = "0.3.15" _version_ = "0.3.16"
# fmt: off # fmt: off
__all__ = [ __all__ = [

View File

@ -159,8 +159,9 @@ class Options:
""" """
values = {} values = {}
for ann in self.__annotations__: # 获取类型注释 for ann in self.__annotations__: # 获取类型注释
values[ann] = getattr(self, ann, None) try:
if values[ann] is None: values[ann] = getattr(self, ann)
except AttributeError:
values[ann] = self.__annotations__[ann] values[ann] = self.__annotations__[ann]
if not hasattr(self, "_options"): if not hasattr(self, "_options"):