Skip to content

1.1

Compare
Choose a tag to compare
@2018-11-27 2018-11-27 released this 04 Jun 01:37
· 15 commits to master since this release
0c1dbba
  1. Supports concatenating paths using the / or + operators.
  2. Implements the __fspath__ method to support path representation on the file system, and adjusts numerous code snippets accordingly.
  3. Improves a few type annotations by introducing TypeAlias and Annotated.
  4. Refines some code by using !r in formatted strings to simplify repr() function calls.
  5. Fixes an issue in the Path.chattr and Path.lsattr methods that cause errors when the path type is bytes.
  6. Improves the code snippet handling path type exceptions in dst2abs.
  7. Optimizes the performance of path concatenation operations by reducing unnecessary string allocations.
  8. Removes the annotated method __ne__.
  9. Updates the version of the only dependent library.
  10. Update the project description.

  1. 支持使用运算符 /+ 拼接路径。
  2. 实现 __fspath__ 方法支持文件系统上的路径表示,并为此调整了大量代码片段。
  3. 改进少量类型注解,引入 TypeAliasAnnotated
  4. 改进少量代码,在格式化字符串中使用 !r 简化 repr() 函数调用。
  5. 修复当路径类型为字节类型时 Path.chattrPath.lsattr 方法中引发错误的问题。
  6. 改进 dst2abs 中处理路径类型异常的代码片段。
  7. 通过减少不必要的字符串分配来优化路径连接操作的性能。
  8. 删除注解方法 __ne__
  9. 更新唯一依赖库版本。
  10. 更新项目简述。