From d102ed124c96ebc74f17b82b43e310e7f61ad2bd Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Wed, 5 Nov 2025 11:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BE=E5=BC=83=E6=89=93=E5=8C=85=E6=B5=81?= =?UTF-8?q?=E7=A8=8B,=20=E9=80=80=E5=8C=96=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Convention/__init__.py | 0 {Convention/Image => Image}/OpenCV.py | 0 {Convention/Image => Image}/init.py | 0 MANIFEST.in | 3 --- .../Runtime => Runtime}/Architecture.py | 0 {Convention/Runtime => Runtime}/Asynchrony.py | 0 {Convention/Runtime => Runtime}/Config.py | 0 {Convention/Runtime => Runtime}/EasySave.py | 0 {Convention/Runtime => Runtime}/File.py | 0 .../Runtime => Runtime}/GlobalConfig.py | 2 +- .../Runtime => Runtime}/Interaction.py | 0 {Convention/Runtime => Runtime}/Reflection.py | 0 {Convention/Runtime => Runtime}/String.py | 0 {Convention/Runtime => Runtime}/Web.py | 0 {Convention/Runtime => Runtime}/__init__.py | 0 [Test]/test.py | 7 ----- setup.py | 27 ------------------- 17 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 Convention/__init__.py rename {Convention/Image => Image}/OpenCV.py (100%) rename {Convention/Image => Image}/init.py (100%) delete mode 100644 MANIFEST.in rename {Convention/Runtime => Runtime}/Architecture.py (100%) rename {Convention/Runtime => Runtime}/Asynchrony.py (100%) rename {Convention/Runtime => Runtime}/Config.py (100%) rename {Convention/Runtime => Runtime}/EasySave.py (100%) rename {Convention/Runtime => Runtime}/File.py (100%) rename {Convention/Runtime => Runtime}/GlobalConfig.py (99%) rename {Convention/Runtime => Runtime}/Interaction.py (100%) rename {Convention/Runtime => Runtime}/Reflection.py (100%) rename {Convention/Runtime => Runtime}/String.py (100%) rename {Convention/Runtime => Runtime}/Web.py (100%) rename {Convention/Runtime => Runtime}/__init__.py (100%) delete mode 100644 [Test]/test.py delete mode 100644 setup.py diff --git a/Convention/__init__.py b/Convention/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/Convention/Image/OpenCV.py b/Image/OpenCV.py similarity index 100% rename from Convention/Image/OpenCV.py rename to Image/OpenCV.py diff --git a/Convention/Image/init.py b/Image/init.py similarity index 100% rename from Convention/Image/init.py rename to Image/init.py diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 4f19e43..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,3 +0,0 @@ -include LICENSE -include README.md -global-exclude *.meta \ No newline at end of file diff --git a/Convention/Runtime/Architecture.py b/Runtime/Architecture.py similarity index 100% rename from Convention/Runtime/Architecture.py rename to Runtime/Architecture.py diff --git a/Convention/Runtime/Asynchrony.py b/Runtime/Asynchrony.py similarity index 100% rename from Convention/Runtime/Asynchrony.py rename to Runtime/Asynchrony.py diff --git a/Convention/Runtime/Config.py b/Runtime/Config.py similarity index 100% rename from Convention/Runtime/Config.py rename to Runtime/Config.py diff --git a/Convention/Runtime/EasySave.py b/Runtime/EasySave.py similarity index 100% rename from Convention/Runtime/EasySave.py rename to Runtime/EasySave.py diff --git a/Convention/Runtime/File.py b/Runtime/File.py similarity index 100% rename from Convention/Runtime/File.py rename to Runtime/File.py diff --git a/Convention/Runtime/GlobalConfig.py b/Runtime/GlobalConfig.py similarity index 99% rename from Convention/Runtime/GlobalConfig.py rename to Runtime/GlobalConfig.py index 904897b..1760897 100644 --- a/Convention/Runtime/GlobalConfig.py +++ b/Runtime/GlobalConfig.py @@ -228,7 +228,7 @@ class GlobalConfig: return self # 配置查找 - def FindItem(self, key: str, default: Any = None) -> Any: + def FindItem[T](self, key: str, default: Optional[T] = None) -> Optional[T]: """查找配置项,支持默认值""" if key in self._data_pair: return self._data_pair[key] diff --git a/Convention/Runtime/Interaction.py b/Runtime/Interaction.py similarity index 100% rename from Convention/Runtime/Interaction.py rename to Runtime/Interaction.py diff --git a/Convention/Runtime/Reflection.py b/Runtime/Reflection.py similarity index 100% rename from Convention/Runtime/Reflection.py rename to Runtime/Reflection.py diff --git a/Convention/Runtime/String.py b/Runtime/String.py similarity index 100% rename from Convention/Runtime/String.py rename to Runtime/String.py diff --git a/Convention/Runtime/Web.py b/Runtime/Web.py similarity index 100% rename from Convention/Runtime/Web.py rename to Runtime/Web.py diff --git a/Convention/Runtime/__init__.py b/Runtime/__init__.py similarity index 100% rename from Convention/Runtime/__init__.py rename to Runtime/__init__.py diff --git a/[Test]/test.py b/[Test]/test.py deleted file mode 100644 index bdf7cbe..0000000 --- a/[Test]/test.py +++ /dev/null @@ -1,7 +0,0 @@ -import sys -import os -sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) - -from Convention.Runtime.Config import * -print(PlatformIndicator.PrettyFace) - diff --git a/setup.py b/setup.py deleted file mode 100644 index a1c89e8..0000000 --- a/setup.py +++ /dev/null @@ -1,27 +0,0 @@ -from setuptools import setup, find_packages -import io - -setup( - name="Convention", - version="0.1.0", - author="LiuBai", - description="A python version code repository for implementing the agreements and implementations in the Convention-Template.", - long_description=io.open("README.md", encoding="utf-8").read(), - long_description_content_type="text/markdown", - url="https://github.com/NINEMINEsigma/Convention-Python", - packages=find_packages(), - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - ], - python_requires=">=3.12", - install_requires=[ - "colorama", - "pydantic", - "python-docx", - "Pillow", - "pydub" - ], - exclude_package_data={"": ["*.meta"]}, -) \ No newline at end of file