Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[MNT] Remove `__version__.py` module and define `__version__` in `__init__`

Aperta
#1,642 8 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Good First Issue maintenance & CI

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 inside openml/__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

Lingua principale
Python
Stelle
361
Fork
296
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openml/openml-python

Tutte le issue di openml/openml-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.