File: __init__.py

package info (click to toggle)
python-twilio 9.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,756 kB
  • sloc: python: 8,281; makefile: 65
file content (15 lines) | stat: -rw-r--r-- 391 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from warnings import warn

from twilio.rest.trunking.TrunkingBase import TrunkingBase
from twilio.rest.trunking.v1.trunk import TrunkList


class Trunking(TrunkingBase):
    @property
    def trunks(self) -> TrunkList:
        warn(
            "trunks is deprecated. Use v1.trunks instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        return self.v1.trunks