Skip to content

Additions/improvements/fixes targetting version 1.0.0-alpha3#4

Open
zuo wants to merge 9 commits intomainfrom
zuo/changes-for-v1.0.0-alpha3
Open

Additions/improvements/fixes targetting version 1.0.0-alpha3#4
zuo wants to merge 9 commits intomainfrom
zuo/changes-for-v1.0.0-alpha3

Conversation

@zuo
Copy link
Copy Markdown
Contributor

@zuo zuo commented Apr 4, 2026

  • [docs] Fix/update/enhance various pieces of the documentation.
  • [lib] Rename ExtendedMessage's format_message() to get_message_value().
  • [lib] Rename ExtendedMessage's get_non_falsy_msg_related_components() to get_dict_with_non_falsy_pattern_and_args()
  • [lib] Modify the signature of ExtendedMessage's get_dict_with_non_falsy_pattern_and_args() (ex get_non_falsy_msg_related_components()) by making the parameter args_output_key keyword-only and adding to it a default value ("args"); as well as by adding a new parameter: pattern_output_key, also keyword-only one and with a default value ("pattern").
  • [lib] Fix a certain ExtendedMessage-subclassing-related behavioral detail, by adding optional resolving of callable values also to the __str__() and iter_str_parts() methods.
  • [lib] ExtendedMessage.get_message_value(): implement per-instance text message caching (so that the message needs to be formatted only once).
  • [lib, aux] introduce mypy, add py.typed marker file, and fix/improve several type hints (+ adjust some other static-typing-related code details).
  • [lib] Optimize and/or refactor some code, including changing some internal names (+ make a few cosmetic tweaks, etc.).
  • [aux] Fix/improve some details in dev-*.bash scripts.

@zuo zuo self-assigned this Apr 4, 2026
zuo added 6 commits April 4, 2026 02:20
...get_non_falsy_msg_related_components():

* rename it to get_dict_with_non_falsy_pattern_and_args()

* parameter *args_output_key* gains a default value ("args"`) and
  becomes a keyword-only one

* add parameter *pattern_output_key* (with default value "pattern",
  also keyword-only one)
@zuo zuo force-pushed the zuo/changes-for-v1.0.0-alpha3 branch from 7c54517 to f1beaf5 Compare April 4, 2026 00:20
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.

1 participant