Skip to content

Commit 4b9c593

Browse files
Bibo-Joshiharshil21
andcommitted
Clear Up Import Policy (python-telegram-bot#2671)
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
1 parent cf14239 commit 4b9c593

File tree

124 files changed

+1526
-1165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+1526
-1165
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Test with pytest
3838
# We run 3 different suites here
39-
# 1. Test just utils.helpers.py without pytz being installed
39+
# 1. Test just utils.datetime.py without pytz being installed
4040
# 2. Test just test_no_passport.py without passport dependencies being installed
4141
# 3. Test everything else
4242
# The first & second one are achieved by mocking the corresponding import

docs/source/telegram.error.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/error.py
22

3-
telegram.error module
3+
telegram.error Module
44
=====================
55

66
.. automodule:: telegram.error
77
:members:
8-
:undoc-members:
98
:show-inheritance:

docs/source/telegram.helpers.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/helpers.py
2+
3+
telegram.helpers Module
4+
=======================
5+
6+
.. automodule:: telegram.helpers
7+
:members:
8+
:show-inheritance:

docs/source/telegram.request.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/request.py
2+
3+
telegram.request Module
4+
=======================
5+
6+
.. automodule:: telegram.request
7+
:members:
8+
:show-inheritance:

docs/source/telegram.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ telegram package
3131
telegram.chatmemberupdated
3232
telegram.chatpermissions
3333
telegram.chatphoto
34-
telegram.constants
3534
telegram.contact
3635
telegram.dice
3736
telegram.document
38-
telegram.error
3937
telegram.file
4038
telegram.forcereply
4139
telegram.inlinekeyboardbutton
@@ -173,13 +171,24 @@ Passport
173171
telegram.encryptedpassportelement
174172
telegram.encryptedcredentials
175173

174+
Auxiliary modules
175+
-----------------
176+
177+
.. toctree::
178+
179+
telegram.constants
180+
telegram.error
181+
telegram.helpers
182+
telegram.request
183+
telegram.warnings
184+
176185
utils
177186
-----
178187

179188
.. toctree::
180189

181-
telegram.utils.helpers
182-
telegram.utils.promise
183-
telegram.utils.request
190+
telegram.utils.datetime
191+
telegram.utils.defaultvalue
192+
telegram.utils.files
184193
telegram.utils.types
185194
telegram.utils.warnings

docs/source/telegram.telegramobject.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/telegramobject.py
2+
13
telegram.TelegramObject
24
=======================
35

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/utils/request.py
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/utils/datetime.py
22

3-
telegram.utils.request.Request
3+
telegram.utils.datetime Module
44
==============================
55

6-
.. autoclass:: telegram.utils.request.Request
6+
.. automodule:: telegram.utils.datetime
77
:members:
88
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/utils/defaultvalue.py
2+
3+
telegram.utils.defaultvalue Module
4+
==================================
5+
6+
.. automodule:: telegram.utils.defaultvalue
7+
:members:
8+
:show-inheritance:

docs/source/telegram.utils.files.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:github_url: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/telegram/utils/files.py
2+
3+
telegram.utils.files Module
4+
===========================
5+
6+
.. automodule:: telegram.utils.files
7+
:members:
8+
:show-inheritance:

docs/source/telegram.utils.helpers.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy