Skip to content
This repository was archived by the owner on May 28, 2022. It is now read-only.

Commit e951d8c

Browse files
committed
Merge branch 'hotfix/v3.0.1'
2 parents 74f97ea + 1f2eb20 commit e951d8c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

mi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__copyright__ = "Copyright 2021-present yupix"
55
__author_email__ = "[email protected]"
66
__url__ = "https://github.com/yupix/Mi.py"
7-
__version__ = "3.0.0"
7+
__version__ = "3.0.1"
88

99
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1010

mi/user.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
from mi.models.user import RawUser
77
from mi.types.user import (Channel as ChannelPayload, FieldContent as FieldContentPayload, PinnedNote as PinnedNotePayload,
88
PinnedPage as PinnedPagePayload)
9+
from mi.instance import Instance
10+
911

1012
if TYPE_CHECKING:
11-
from mi import ConnectionState, Instance
13+
from mi import ConnectionState
1214
from mi.api.follow import FollowRequestManager
1315

1416
__all__ = ['User', 'FollowRequest', 'Followee']
@@ -309,4 +311,4 @@ def get_followers(self, until_id: Optional[str] = None, limit: int = 10, get_all
309311

310312
@property
311313
def action(self):
312-
return self.__state.get_user_instance(self.__raw_user.id)
314+
return self.__state.get_user_instance(self.__raw_user.id, user=self)

setup.py

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

3939
setup(
4040
name="mi.py",
41-
version="3.0.0",
41+
version="3.0.1",
4242
install_requires=["emoji", 'aiocache', 'aiohttp'],
4343
url="https://github.com/yupix/mi.py",
4444
author="yupix",

0 commit comments

Comments
 (0)