fastcore 2.2.42__tar.gz → 2.2.43__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. {fastcore-2.2.42/fastcore.egg-info → fastcore-2.2.43}/PKG-INFO +1 -1
  2. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/__init__.py +1 -1
  3. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/docments.py +1 -1
  4. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/xtras.py +2 -3
  5. {fastcore-2.2.42 → fastcore-2.2.43/fastcore.egg-info}/PKG-INFO +1 -1
  6. {fastcore-2.2.42 → fastcore-2.2.43}/CONTRIBUTING.md +0 -0
  7. {fastcore-2.2.42 → fastcore-2.2.43}/LICENSE +0 -0
  8. {fastcore-2.2.42 → fastcore-2.2.43}/README.md +0 -0
  9. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/_modidx.py +0 -0
  10. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/aio.py +0 -0
  11. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/all.py +0 -0
  12. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/ansi.py +0 -0
  13. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/apisurface.py +0 -0
  14. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/basics.py +0 -0
  15. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/dispatch.py +0 -0
  16. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/docscrape.py +0 -0
  17. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/editskill.py +0 -0
  18. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/foundation.py +0 -0
  19. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/funccall.py +0 -0
  20. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/imghdr.py +0 -0
  21. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/imports.py +0 -0
  22. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/meta.py +0 -0
  23. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/nb_imports.py +0 -0
  24. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/nbio.py +0 -0
  25. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/net.py +0 -0
  26. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/parallel.py +0 -0
  27. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/py2pyi.py +0 -0
  28. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/script.py +0 -0
  29. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/shutil.py +0 -0
  30. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/style.py +0 -0
  31. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/test.py +0 -0
  32. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/tools.py +0 -0
  33. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/transform.py +0 -0
  34. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/utils.py +0 -0
  35. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/xdg.py +0 -0
  36. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore/xml.py +0 -0
  37. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore.egg-info/SOURCES.txt +0 -0
  38. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore.egg-info/dependency_links.txt +0 -0
  39. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore.egg-info/entry_points.txt +0 -0
  40. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore.egg-info/requires.txt +0 -0
  41. {fastcore-2.2.42 → fastcore-2.2.43}/fastcore.egg-info/top_level.txt +0 -0
  42. {fastcore-2.2.42 → fastcore-2.2.43}/pyproject.toml +0 -0
  43. {fastcore-2.2.42 → fastcore-2.2.43}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastcore
3
- Version: 2.2.42
3
+ Version: 2.2.43
4
4
  Summary: Python supercharged for fastai development
5
5
  Author-email: Jeremy Howard and Sylvain Gugger <infos@fast.ai>
6
6
  License-Expression: Apache-2.0
@@ -55,4 +55,4 @@ Modules:
55
55
  - `fastcore.xml`: Concise HTML generation and namespace-aware XML construction.
56
56
  - `fastcore.xtras`: Utility functions used in the fastai library"""
57
57
 
58
- __version__ = "2.2.42"
58
+ __version__ = "2.2.43"
@@ -206,7 +206,7 @@ def docments(s, full=False, eval_str=False, returns=True, args_kwargs=False):
206
206
  docs = {}
207
207
  while s is not None:
208
208
  p = _param_locs(s, returns=returns, args_kwargs=args_kwargs) or {}
209
- c = {o.start[0]:_clean_comment(o.string) for o in _tokens(s) if o.type==COMMENT}
209
+ c = {o.start[0]:_clean_comment(o.string) for o in _tokens(s) if o.type==COMMENT} if p else {}
210
210
  for k,v in p.items():
211
211
  if v not in docs: docs[v] = _get_comment(k, v, c, p)
212
212
  s = getattr(s, '__delwrap__', None)
@@ -681,11 +681,10 @@ def __repr__(self:Path):
681
681
  @patch
682
682
  def delete(self:Path):
683
683
  "Delete a file, symlink, or directory tree"
684
- if not self.exists(): return
685
- if self.is_dir():
684
+ if not self.is_symlink() and self.is_dir():
686
685
  import shutil
687
686
  shutil.rmtree(self)
688
- else: self.unlink()
687
+ else: self.unlink(missing_ok=True)
689
688
 
690
689
  # %% ../nbs/03_xtras.ipynb #f2bb033e
691
690
  class IterLen:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastcore
3
- Version: 2.2.42
3
+ Version: 2.2.43
4
4
  Summary: Python supercharged for fastai development
5
5
  Author-email: Jeremy Howard and Sylvain Gugger <infos@fast.ai>
6
6
  License-Expression: Apache-2.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes