layday
2bd06a0a3d
Restrict shutil.move src argument to str ( #3559 )
...
See https://bugs.python.org/issue32689 .
This bug only affects `src`s which are directory
Paths in Python 3.5 to 3.8 inclusive.
Comes at the cost of restricting
`src` to str even where a Path would work but
this might be preferable to exposing the bug.
2020-01-05 16:38:16 +01:00
hauntsaninja
ac2e59af81
shutil: update which for py38 ( #3575 )
2020-01-05 16:19:03 +01:00
layday
21a9e69612
Update shutil.unpack_archive for 3.7 and up ( #3558 )
2019-12-27 11:26:26 +01:00
Jelle Zijlstra
6b751ef408
shutil: Fix rmtree type ( #3536 )
...
See my comment in https://github.com/python/typeshed/issues/3533#issuecomment-563366251 .
2019-12-21 12:29:59 -08:00
Sebastian Rittau
ec7960a8cb
Convert namedtuples to class syntax ( #3321 )
2019-10-20 10:37:33 +02:00
Sebastian Rittau
8a7d61741d
Python3.8 additions and changes ( #3337 )
...
* Add as_integer_ratio() to a few types
* Add dirs_exist_ok to copytree()
* int, float, complex accept __index__ args
Also fix complex.__init__ argument names
* Add __reversed__ to dict et al.
* Python 3.8 date(time) arithmetic fixes
* Add CodeType.replace()
2019-10-10 20:51:27 -07:00
Guido van Rossum
b336182b69
Fix some errors with --disallow-any-generics ( #3276 )
...
See #3267 . Covers all of stdlib/2and3.
2019-09-29 09:15:27 -07:00
Siva Chandra
f73d060042
Use Text under Python 2 in shutil.pyi. ( #2471 )
2018-09-25 20:25:04 -07:00
Sebastian Rittau
187aaaced9
Use protocols for shutils.copyfileobj() ( #2291 )
...
See https://github.com/python/typing/issues/564 for background.
2018-06-28 10:28:24 -07:00
Sebastian Rittau
b261b228ba
Merge Python 2 and 3 shutil ( #2259 )
...
* Drop support for Python 3.3
* Merge Python 2 and 3 shutil
* Marked some arguments optional
* Changed callback return type from None to Any for more flexibility
2018-06-27 20:42:58 -07:00