> For the complete documentation index, see [llms.txt](https://pyot.iann838.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pyot.iann838.com/models/tft/trait.md).

# Trait

Module: `pyot.models.tft.trait`

### *class* `Trait`

Type: `PyotCore`

Definitions:

* `__init__` -> `None`
  * `key`: `str = empty`
  * `set`: `int = empty`
  * `version`: `str = models.tft.DEFAULT_VERSION`
  * `locale`: `str = models.lol.DEFAULT_LOCALE`

Endpoints:

* `cdragon_tft_full`: `['?set', '?key', 'version', 'locale']`

Methods:

* *method* `find_set` -> `None`

Attributes:

* `set` -> `int`
* `key` -> `str`
* `name` -> `str`
* `effects` -> `List[pyot.models.tft.trait.TraitEffectData]`
* `icon_path` -> `str`
* `description` -> `str`

### *class* `Traits`

Type: `PyotCore`

Definitions:

* `__init__` -> `None`
  * `set`: `int = -1`
  * `version`: `str = models.tft.DEFAULT_VERSION`
  * `locale`: `str = models.lol.DEFAULT_LOCALE`
* `__iter__` -> `Iterator[pyot.models.tft.trait.Trait]`
* `__len__` -> `int`

Endpoints:

* `cdragon_tft_full`: `['?set', 'version', 'locale']`

Attributes:

* `set` -> `int`
* `traits` -> `List[pyot.models.tft.trait.Trait]`

### *class* `TraitEffectData`

Type: `PyotStatic`

Attributes:

* `max_units` -> `int`
* `min_units` -> `int`
* `style` -> `int`
* `variables` -> `Dict[str, Union[float, str]]`
