Skip to content

Conversation

@chrysle
Copy link
Contributor

@chrysle chrysle commented Feb 28, 2023

Summary

This resolves #1082

Could somebody help me with the tests? I'm not sure they're right where they are.

Pull Request Check List

  • Added tests for changed code.
    Our CI fails if coverage is not 100%.
  • New features have been added to our Hypothesis testing strategy.
  • Changes or additions to public APIs are reflected in our type stubs (files ending in .pyi).
    • ...and used in the stub test file tests/typing_example.py.
    • If they've been added to attr/__init__.pyi, they've also been re-imported in attrs/__init__.pyi.
  • Updated documentation for changed code.
    • New functions/classes have to be added to docs/api.rst by hand.
    • Changes to the signature of @attr.s() have to be added by hand too.
    • Changed/added classes/methods/functions have appropriate versionadded, versionchanged, or deprecated directives.
      The next version is the second number in the current release + 1.
      So if the current version on PyPI is 23.1.0, the next version is gonna be 23.2.0.
  • Documentation in .rst files is written using semantic newlines.
  • Changes (and possible deprecations) have news fragments in changelog.d.
  • Consider granting push permissions to the PR branch, so maintainers can fix minor issues themselves without pestering you.

Copy link
Member

@hynek hynek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've just added some warnings!

Sorry it took so long, sadly this is about the worst time of the year for me and FOSS.

@hynek hynek enabled auto-merge (squash) April 3, 2023 14:36
@hynek hynek merged commit 65ee286 into python-attrs:main Apr 3, 2023
@chrysle chrysle deleted the type_attrs_field branch April 3, 2023 15:43
@chrysle
Copy link
Contributor Author

chrysle commented Apr 3, 2023

No problem, thanks for accepting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add type back to attrs.field() for use in attrs.make_class()

2 participants