Skip to content

Commit a2390a3

Browse files
committed
make it mergeable with official repo
1 parent bd06c2b commit a2390a3

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

coc/hero.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from typing import TYPE_CHECKING, Dict, List, Type
22
from pathlib import Path
33

4-
from attr import dataclass
5-
64
from .abc import DataContainer, DataContainerHolder
75

86
if TYPE_CHECKING:
@@ -108,7 +106,7 @@ class HeroHolder(DataContainerHolder):
108106
data_object = Hero
109107

110108

111-
@dataclass
109+
112110
class Pet(DataContainer):
113111
"""Represents a Pet object as returned by the API, optionally filled with game data.
114112

docs/code_overview/client.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,9 @@ Example
1616
~~~~~~~
1717
.. code-block:: python3
1818
19-
import asyncio
2019
import coc
2120
22-
async def main():
23-
async with coc.Client() as coc_client:
24-
await coc_client.login("email", "password")
25-
26-
# do stuff
27-
28-
asyncio.run(main())
21+
client = coc.login("email", "password", key_names="keys for my windows pc", key_count=5)
2922
3023
With the returned instance, you can complete any of the operations detailed below.
3124

0 commit comments

Comments
 (0)