| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from .base import Resource |
||
| 2 | |||
| 3 | |||
| 4 | # ======================================================= |
||
| 5 | # Teams |
||
| 6 | # ======================================================= |
||
| 7 | class Teams(Resource): |
||
| 8 | def fetch(self, |
||
| 9 | only_with_users: bool = False, |
||
| 10 | only_mine: bool = False): |
||
| 11 | user = "me" if only_mine else "" |
||
| 12 | return self._get("/teams", with_users=only_with_users, user=user) |
||
| 13 |