[MNT] Remove `__version__.py` module and define `__version__` in `__init__`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- developer-experience
Hướng nghiên cứu
Start with openml/version.py and openml/init.py to compare the current definition and re-export. Search the package for internal imports of version and update them consistently. Done means openml.version is a single attribute defined in init.py, the separate module is removed, and imports remain functional.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Currently, the package defines __version__ inside a __version__.py module and then re-exports it from openml/__init__.py.
This results in two objects named __version__:
- the module
openml.__version__ - the variable
__version__imported from that module
This kind of name masking between a module and a variable is generally discouraged in Python, as it can lead to confusion and unclear import semantics.
Todo:
- Remove
openml/__version__.py - Define
__version__directly insideopenml/__init__.py - Update any internal imports accordingly
This keeps a single, conventional openml.__version__ attribute while avoiding module/variable name collisions and simplifying the package structure.
Initial Source/Discussion: https://github.com/aiondemand/aiondemand/pull/70
- Ngôn ngữ chính
- Python
- Star
- 361
- Fork
- 296
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openml/openml-python
-
Documentation Good First Issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
openml/openml-python#1708 · 6 bình luận ·
-
Good First Issue module:Run testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
openml/openml-python#1646 · 7 bình luận · 2 reaction ·
-
Good First Issue module:Data testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
openml/openml-python#1644 · 4 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
openml/openml-python#1714 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
openml/openml-python#1711 · 1 bình luận ·
Tất cả issue của openml/openml-python
Issue tương tự
-
triage/confirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
apache/cloudstack#14222 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100