Skip to content

Commit b057dcb

Browse files
committed
Small fixes around docs
1 parent d86d853 commit b057dcb

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/source/topics/debugging.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Consider the following code:
3131
print(dan) # User
3232
3333
This will show a JSON representation of the object returned by :meth:`~pyrogram.Client.get_users`, which is a
34-
:class:`~pyrogram.User` instance, in this case. The output on your terminal will be something similar to this:
34+
:class:`~pyrogram.types.User` instance, in this case. The output on your terminal will be something similar to this:
3535

3636
.. code-block:: json
3737
@@ -116,14 +116,14 @@ error. The correct way to get the object type is by using the built-in function
116116
117117
.. code-block:: text
118118
119-
<class 'pyrogram.UserStatus'>
119+
<class 'pyrogram.types.UserStatus'>
120120
121121
And to check if an object is an instance of a given class, you use the built-in function ``isinstance()``:
122122

123123
.. code-block:: python
124124
:name: this-py
125125
126-
from pyrogram import UserStatus
126+
from pyrogram.types import UserStatus
127127
128128
dan_status = dan.status
129129
print(isinstance(dan_status, UserStatus))

pyrogram/types/object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
class Meta(type, metaclass=type("", (type,), {"__str__": lambda _: "~hi"})):
2727
def __str__(self):
28-
return f"<class 'pyrogram.{self.__name__}'>"
28+
return f"<class 'pyrogram.types.{self.__name__}'>"
2929

3030

3131
class Object(metaclass=Meta):

0 commit comments

Comments
 (0)