Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix hot reloading module state bug#813

Open
FasterSpeeding wants to merge 5 commits intomasterfrom
bugfix/reloading
Open

Fix hot reloading module state bug#813
FasterSpeeding wants to merge 5 commits intomasterfrom
bugfix/reloading

Conversation

Copy link
Collaborator

FasterSpeeding commented Aug 15, 2023

Summary

Checklist

  • I have run nox and all the pipelines have passed.
  • I have made unittests according to the code I have added/modified/deleted.

Related issues

Copy link
Contributor

github-actions bot commented Aug 15, 2023 *
edited
Loading

PR Preview Action ddfa7dc4b5f8fa02675fe5da02ae15c9722367f0
Deployed preview to https://FasterSpeeding.github.io/Tanjun/pr-preview/pr-813/
on branch docs at 2023-08-28 18:57 UTC

raise
except Exception as exc:
self._call_loaders(module_path, old_loaders)
modules_dict.pop(module_path)
Copy link
Collaborator Author

FasterSpeeding Aug 15, 2023

Choose a reason for hiding this comment

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

failed module load could have a variant with a field which indicates whether it reverted or not

CHANGELOG.md Outdated
- [BasicLocaliser.set_variants][tanjun.dependencies.BasicLocaliser.set_variants]
now tries to normalise the locale keys of variants passed as keyword arguments
to match the [hikari.Locale][hikari.locales.Locale] values.
- The hot-reloader no-longer reverts to a module's old components loaded after
Copy link
Collaborator Author

FasterSpeeding Aug 15, 2023

Choose a reason for hiding this comment

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

both reloader and the reload method*

FasterSpeeding force-pushed the bugfix/reloading branch from 79c572c to ee8d1bd Compare August 28, 2023 18:44
FasterSpeeding force-pushed the bugfix/reloading branch from ee8d1bd to faceed2 Compare August 28, 2023 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant