Fastai

Latest version: v2.7.18

Safety actively analyzes 681881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 13 of 29

1.7.1

New Features

- Add `UNSET` singleton
- nullable dataclass overhaul ([607](https://github.com/fastai/fastcore/issues/607))
- Update `nullable_dc` to use `UNSET` instead of `None`
- Rename `mk_dataclass` to `flexiclass`
- `flexiclass` uses `UNSET` instead of `None`
- Add `asdict`, like the `dataclasses` version but works on more types
- Add `is_typeddict` and `is_namedtuple`
- Flatten nested tuples in `ft`

1.7.0

Breaking Changes

- The FT structure has been changed so it no longer inherits from `list` ([606](https://github.com/fastai/fastcore/issues/606))
- `.list` property added so you can still destructure it
- `__getitem__` now returns the approach child element
- `__add__` adds children

1.6.9

New Features

- Handle embedded quotes in `to_xml` ([604](https://github.com/fastai/fastcore/issues/604))
- Skip dict and listy valued attrs if empty in `ft` ([603](https://github.com/fastai/fastcore/issues/603))

1.6.8

New Features

- stringify list values in `ft` attr vals ([602](https://github.com/fastai/fastcore/issues/602))
- Allow `__ft__` methods to return tuples ([596](https://github.com/fastai/fastcore/pull/596)), thanks to [Rahulbeniwal26119](https://github.com/Rahulbeniwal26119)

1.6.7

New Features

- Do not update `-` to `_` if special chars present in `ft` ([601](https://github.com/fastai/fastcore/issues/601))

1.6.6

New Features

- Add `FT.get(k,default)` ([600](https://github.com/fastai/fastcore/issues/600))
- Add `Safe` str and return it from `to_xml` ([599](https://github.com/fastai/fastcore/issues/599))
- Feat: add an `indent` flag for `to_xml()` ([594](https://github.com/fastai/fastcore/pull/594)), thanks to [phact](https://github.com/phact)

Page 13 of 29

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.