Migrate nbxmpp.structs from namedtuple to dataclass
This lets us do some typing for the attributes, and specify the default values in a much more user-friendly way.
This can be done now since we’re on Python 3.7!
Step 1. Fetch and check out the branch for this merge request
git fetch "https://dev.gajim.org/linkmauve/python-nbxmpp.git" "typing" git checkout -b "linkmauve/python-nbxmpp-typing" FETCH_HEAD
Step 2. Review the changes locally
Step 3. Merge the branch and fix any conflicts that come up
git fetch origin git checkout "master" git merge --no-ff "linkmauve/python-nbxmpp-typing"
Step 4. Push the result of the merge to GitLab
git push origin "master"
Note that pushing to GitLab requires write access to this repository.
Tip: You can also checkout merge requests locally by following these guidelines.
This lets us do some typing for the attributes, and specify the default values in a much more user-friendly way.
This can be done now since we’re on Python 3.7!