Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

refactor: remove usage of @define #682

Merged
merged 1 commit into from
Oct 21, 2022
Merged

refactor: remove usage of @define #682

merged 1 commit into from
Oct 21, 2022

Conversation

LordOfPolls
Copy link
Member

What type of pull request is this?

  • Non-breaking code change
  • Breaking code change
  • Documentation change/addition
  • Tests change

Description

This PR removes usage of the cheat @define decorator defined in attr_utils. This change improves type checker and intelisense behaviour across the board. Most got confused with the partial object decloration.
Care has been taken to preserve any custom deviation from the normal @define kwargs.

The @define definition itself has been preserved as I am aware downstream project leverage it, however, I'd discourage its usage.

Changes

  • Regex replace of @define in all files

Checklist

  • I've formatted my code with Black
  • I've ensured my code works on Python 3.10.x
  • I've tested my code

@LordOfPolls LordOfPolls added the Improvement Something that is already implemented but can be done better label Oct 19, 2022
@LordOfPolls LordOfPolls merged commit 07bc042 into 2.x Oct 21, 2022
@LordOfPolls LordOfPolls deleted the purge-cheat-define branch October 21, 2022 03:39
@LordOfPolls LordOfPolls mentioned this pull request Oct 23, 2022
7 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Improvement Something that is already implemented but can be done better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants