Skip to content

Conversation

@Jeam-zx
Copy link

@Jeam-zx Jeam-zx commented Dec 8, 2024

Qué?

Se ha realizado un refactor de los imports de datetime para estandarizar su uso a través de múltiples módulos y así mejorar la consistencia y legibilidad del código.

Por qué?

Utilizar un alias consistente para los imports de datetime a través de diversos módulos ayuda a mantener un código más limpio, fácil de leer y de mantener.

Cómo?

Se han modificado los siguientes archivos para utilizar un alias común (dtm) para los imports de datetime:

  • docs/auxil/tg_const_role.py
  • telegram_bot.py
  • telegram_business.py
  • telegram_chat.py
  • telegram_chatboost.py
  • telegram_chatfullinfo.py
  • telegram_chatinvitelink.py
  • telegram_chatjoinrequest.py
  • telegram_chatmember.py
  • telegram_chatmemberupdated.py
  • telegram_giveaway.py
  • telegram_message.py
  • telegram_messageonorigin.py
  • telegram_messagereactionupdated.py

Además, se han identificado otros módulos que también requieren la refactorización de las importaciones de datetime, por lo que se continuará trabajando en este esfuerzo para abarcar todos los módulos necesarios.

@Jeam-zx Jeam-zx added the enhancement New feature or request label Dec 8, 2024
@Jeam-zx Jeam-zx self-assigned this Dec 8, 2024
Copy link
Collaborator

@cuevasrja cuevasrja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Bibo-Joshi and others added 14 commits December 9, 2024 19:34
…-bot#4565)

Co-authored-by: Snehashish Biswas <coderrx06@gmail.com>
Co-authored-by: poolitzer <github@poolitzer.eu>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
…legram-bot#4595)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
Copy link

@AnyaMarcanito AnyaMarcanito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@cuevasrja cuevasrja merged commit f5233a4 into master Dec 13, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants