endpoints.teams.Teams.fetch()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 5
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
nop 3
dl 0
loc 5
rs 10
c 0
b 0
f 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