mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-27 16:45:19 +00:00
Fix GitHub actions
This commit is contained in:
parent
e43bfd276a
commit
1b9dac8ad3
7
.github/workflows/python.yml
vendored
7
.github/workflows/python.yml
vendored
@ -8,8 +8,8 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
|
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -26,7 +26,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate API
|
- name: Generate API
|
||||||
run: |
|
run: |
|
||||||
python setup.py generate --api
|
make venv
|
||||||
|
make api
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
|
@ -17,9 +17,11 @@
|
|||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
class Client:
|
class Client:
|
||||||
@staticmethod
|
def __init__(self):
|
||||||
async def get_me():
|
self.username = "username"
|
||||||
return User("username")
|
|
||||||
|
async def get_me(self):
|
||||||
|
return User(self.username)
|
||||||
|
|
||||||
|
|
||||||
class User:
|
class User:
|
||||||
|
Loading…
Reference in New Issue
Block a user