Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-cyclopts for openSUSE:Factory 
checked in at 2026-11-26 15:53:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cyclopts (Old)
 and      /work/SRC/openSUSE:Factory/.python-cyclopts.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cyclopts"

Thu Nov 26 15:53:36 2026 rev:31 rq:1400524 version:5.5.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cyclopts/python-cyclopts.changes  
2026-11-17 17:20:21.531512194 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-cyclopts.new.1340718/python-cyclopts.changes 
    2026-11-26 15:53:51.605904420 +0100
@@ -1,0 +2,19 @@
+Wed Nov 25 08:54:53 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 5.5.3 (PyPI release 2026-11-24):
+  * Parse bare typing.List/Set aliases as collections of str
+    instead of raising IndexError
+  * Convert Any elements (list[Any], tuple[Any, ...]) as strings
+    instead of raising CoercionError
+  * types.Email and types.URL reject values with a trailing
+    newline
+  * An unreadable config file raises CycloptsError instead
+    of TypeError
+  * Line breaks in help text become spaces in shell completion
+    descriptions
+  * Fix broken HTML doc links for app/command names with
+    whitespace or special characters, nested subcommand TOC
+    with recursive=False, --help/--version links with
+    include_hidden=True, and colliding anchors
+
+-------------------------------------------------------------------

Old:
----
  cyclopts-5.5.2.tar.gz

New:
----
  cyclopts-5.5.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-cyclopts.spec ++++++
--- /var/tmp/diff_new_pack.cgZ1Yg/_old  2026-11-26 15:53:52.890959012 +0100
+++ /var/tmp/diff_new_pack.cgZ1Yg/_new  2026-11-26 15:53:52.893959140 +0100
@@ -18,7 +18,7 @@
 
 %bcond_without libalternatives
 Name:           python-cyclopts
-Version:        5.5.2
+Version:        5.5.3
 Release:        0
 Summary:        Intuitive, easy CLIs based on python type hints
 License:        Apache-2.0
@@ -68,7 +68,7 @@
 %pre
 %python_libalternatives_reset_alternative cyclopts
 
-%files %{python_files}
+%files %python_files
 %doc README.md
 %license LICENSE
 %python_alternative %{_bindir}/cyclopts

++++++ cyclopts-5.5.2.tar.gz -> cyclopts-5.5.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.5.2/PKG-INFO new/cyclopts-5.5.3/PKG-INFO
--- old/cyclopts-5.5.2/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/cyclopts-5.5.3/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.5
 Name: cyclopts
-Version: 5.5.2
+Version: 5.5.3
 Summary: Intuitive, easy CLIs based on type hints.
 Project-URL: Homepage, https://github.com/BrianPugh/cyclopts
 Project-URL: Repository, https://github.com/BrianPugh/cyclopts
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.5.2/cyclopts/_convert.py 
new/cyclopts-5.5.3/cyclopts/_convert.py
--- old/cyclopts-5.5.2/cyclopts/_convert.py     2020-02-02 01:00:00.000000000 
+0100
+++ new/cyclopts-5.5.3/cyclopts/_convert.py     2020-02-02 01:00:00.000000000 
+0100
@@ -299,6 +299,7 @@
     timedelta: _timedelta,
     NoneType: _none,
     slice: _slice,
+    Any: str,
 }
 
 
@@ -670,6 +671,9 @@
         out = convert(dict[str, str], token)
     elif type_ in _implicit_iterable_type_mapping:
         out = convert(_implicit_iterable_type_mapping[type_], token)
+    elif origin_type in _implicit_iterable_type_mapping and not inner_types:
+        # Bare ``typing`` alias (e.g., ``typing.List`` or ``typing.Iterable`` 
with no [T]).
+        out = convert(_implicit_iterable_type_mapping[origin_type], token)
     elif type_ in _abstract_to_concrete_type_mapping:
         # Bare abstract type (e.g., collections.abc.Set with no [T])
         # Convert to default parameterized concrete type
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.5.2/cyclopts/_version.py 
new/cyclopts-5.5.3/cyclopts/_version.py
--- old/cyclopts-5.5.2/cyclopts/_version.py     2020-02-02 01:00:00.000000000 
+0100
+++ new/cyclopts-5.5.3/cyclopts/_version.py     2020-02-02 01:00:00.000000000 
+0100
@@ -18,7 +18,7 @@
 commit_id: str | None
 __commit_id__: str | None
 
-__version__ = version = '5.5.2'
-__version_tuple__ = version_tuple = (5, 5, 2)
+__version__ = version = '5.5.3'
+__version_tuple__ = version_tuple = (5, 5, 3)
 
 __commit_id__ = commit_id = None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.5.2/cyclopts/completion/_base.py 
new/cyclopts-5.5.3/cyclopts/completion/_base.py
--- old/cyclopts-5.5.2/cyclopts/completion/_base.py     2020-02-02 
01:00:00.000000000 +0100
+++ new/cyclopts-5.5.3/cyclopts/completion/_base.py     2020-02-02 
01:00:00.000000000 +0100
@@ -295,10 +295,12 @@
     from cyclopts._markup import extract_text
     from cyclopts.help.inline_text import InlineText
 
+    # rich.Text silently deletes \r \v \f, which would glue the words around 
them.
+    text = re.sub(r"[\r\v\f]", " ", text)
     inline = InlineText.from_format(text, format=format)
     text = extract_text(inline)
 
-    text = re.sub(r"[\x00-\x1f\x7f]", "", text)
+    text = re.sub(r"(?!\s)[\x00-\x1f\x7f]", "", text)
     text = re.sub(r"\s+", " ", text).strip()
 
     if len(text) > max_length:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.5.2/cyclopts/config/_common.py 
new/cyclopts-5.5.3/cyclopts/config/_common.py
--- old/cyclopts-5.5.2/cyclopts/config/_common.py       2020-02-02 
01:00:00.000000000 +0100
+++ new/cyclopts-5.5.3/cyclopts/config/_common.py       2020-02-02 
01:00:00.000000000 +0100
@@ -2,7 +2,6 @@
 import os
 from abc import ABC, abstractmethod
 from collections.abc import Iterable
-from contextlib import suppress
 from itertools import chain
 from pathlib import Path
 from typing import TYPE_CHECKING, Any
@@ -181,8 +180,8 @@
                     raise
                 except Exception as e:
                     msg = getattr(type(e), "__name__", "")
-                    with suppress(IndexError):
-                        exception_msg = e.args[0]
+                    exception_msg = str(e)
+                    if exception_msg:
                         if msg:
                             msg += ": "
                         msg += exception_msg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.5.2/cyclopts/docs/base.py 
new/cyclopts-5.5.3/cyclopts/docs/base.py
--- old/cyclopts-5.5.2/cyclopts/docs/base.py    2020-02-02 01:00:00.000000000 
+0100
+++ new/cyclopts-5.5.3/cyclopts/docs/base.py    2020-02-02 01:00:00.000000000 
+0100
@@ -375,7 +375,7 @@
 def generate_anchor(command_path: str) -> str:
     """Generate a URL-friendly anchor from a command path.
 
-    Converts spaces to hyphens and lowercases the string to match
+    Converts whitespace runs to hyphens and lowercases the string to match
     how markdown/HTML processors generate anchors from headings.
     Strips leading dashes to match markdown processor behavior.
 
@@ -396,12 +396,40 @@
     >>> generate_anchor("myapp --install-completion")
     'myapp-install-completion'
     """
-    anchor = command_path.lower().replace(" ", "-")
+    anchor = re.sub(r"\s+", "-", command_path.lower())
     # Collapse consecutive dashes to single dash (markdown processors do this)
     anchor = re.sub(r"-+", "-", anchor)
     return anchor
 
 
+def unique_anchor(command_path: str, used: set[str]) -> str:
+    """Generate an anchor for ``command_path`` that is not yet in ``used``.
+
+    A colliding anchor gets the lowest free ``_N`` suffix (``N >= 1``).
+    The returned anchor is added to ``used``.
+
+    Parameters
+    ----------
+    command_path : str
+        Full command path (e.g., "myapp files cp").
+    used : set[str]
+        Anchors already assigned in the document; updated in place.
+
+    Returns
+    -------
+    str
+        Unique anchor string.
+    """
+    base = generate_anchor(command_path)
+    anchor = base
+    n = 0
+    while anchor in used:
+        n += 1
+        anchor = f"{base}_{n}"
+    used.add(anchor)
+    return anchor
+
+
 def should_skip_command(command_name: str, subapp: "App", parent_app: "App", 
include_hidden: bool) -> bool:
     """Check if a command should be skipped.
 
@@ -433,8 +461,8 @@
     return False
 
 
-def filter_help_entries(app: "App", panel: "HelpPanel", include_hidden: bool) 
-> list[Any]:
-    """Filter help panel entries based on visibility settings.
+def filter_help_entries(app: "App", panel: "HelpPanel") -> list[Any]:
+    """Drop built-in help and version flags from panel entries.
 
     Parameters
     ----------
@@ -442,17 +470,12 @@
         The App instance to check against.
     panel : HelpPanel
         The help panel to filter.
-    include_hidden : bool
-        Whether to include hidden entries.
 
     Returns
     -------
     List[Any]
         Filtered panel entries.
     """
-    if include_hidden:
-        return panel.entries
-
     return [e for e in panel.entries if not (e.names and 
is_all_builtin_flags(app, e.names))]
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.5.2/cyclopts/docs/html.py 
new/cyclopts-5.5.3/cyclopts/docs/html.py
--- old/cyclopts-5.5.2/cyclopts/docs/html.py    2020-02-02 01:00:00.000000000 
+0100
+++ new/cyclopts-5.5.3/cyclopts/docs/html.py    2020-02-02 01:00:00.000000000 
+0100
@@ -9,9 +9,9 @@
     extract_usage,
     filter_help_entries,
     format_usage_line,
-    generate_anchor,
     iterate_commands,
     resolve_doc_root_name,
+    unique_anchor,
     usage_display_chain,
 )
 
@@ -19,28 +19,54 @@
     from cyclopts.core import App
 
 
+def _build_anchor_map(
+    app: "App", include_hidden: bool, recursive: bool, command_chain: list[str]
+) -> dict[tuple[str, ...], str]:
+    """Map the path of each command section that will be rendered to a unique 
anchor id, in document order.
+
+    Colliding anchors (e.g. ``files-cp`` vs ``files cp``) get ``_N`` suffixes.
+    """
+    anchors: dict[tuple[str, ...], str] = {}
+    used: set[str] = set()
+
+    def walk(app: "App", chain: tuple[str, ...]) -> None:
+        for name, subapp in iterate_commands(app, include_hidden):
+            sub_chain = (*chain, name)
+            anchors[sub_chain] = unique_anchor(" ".join(sub_chain), used)
+            if recursive:
+                walk(subapp, sub_chain)
+
+    if command_chain:
+        root = tuple(command_chain)
+        anchors[root] = unique_anchor(" ".join(root), used)
+    else:
+        root = (resolve_doc_root_name(app),)
+    walk(app, root)
+    return anchors
+
+
 def _generate_html_toc(
     lines: list[str],
     app: "App",
     include_hidden: bool,
-    app_name: str,
-    prefix: str,
+    anchors: dict[tuple[str, ...], str],
+    chain: tuple[str, ...],
     depth: int = 0,
+    recursive: bool = True,
 ) -> None:
     """Recursively generate HTML table of contents."""
     if not app._commands:
         return
 
     for name, subapp in iterate_commands(app, include_hidden):
-        display_name = f"{prefix}{name}" if prefix else name
-        full_path = f"{app_name}-{display_name.replace(' ', '-')}".lower()
+        sub_chain = (*chain, name)
 
         indent = "  " * (depth + 1)
-        lines.append(f'{indent}<li><a 
href="#{full_path}"><code>{name}</code></a>')
+        lines.append(f'{indent}<li><a 
href="#{escape_html(anchors[sub_chain])}"><code>{escape_html(name)}</code></a>')
 
-        if subapp._commands:
+        if recursive and subapp._commands:
             lines.append(f"{indent}  <ul>")
-            _generate_html_toc(lines, subapp, include_hidden, app_name, 
f"{display_name} ", depth + 1)
+            _generate_html_toc(lines, subapp, include_hidden, anchors, 
sub_chain, depth + 1)
             lines.append(f"{indent}  </ul>")
 
         lines.append(f"{indent}</li>")
@@ -382,11 +408,41 @@
     str
         The generated HTML documentation.
     """
-    from cyclopts.help.formatters.html import HtmlFormatter
-
-    # Initialize command chain if not provided
     if command_chain is None:
         command_chain = []
+    return _generate_html_docs(
+        app,
+        recursive=recursive,
+        include_hidden=include_hidden,
+        heading_level=heading_level,
+        max_heading_level=max_heading_level,
+        standalone=standalone,
+        custom_css=custom_css,
+        command_chain=command_chain,
+        generate_toc=generate_toc,
+        flatten_commands=flatten_commands,
+        usage_name=usage_name,
+        anchors=_build_anchor_map(app, include_hidden, recursive, 
command_chain),
+    )
+
+
+def _generate_html_docs(
+    app: "App",
+    *,
+    recursive: bool,
+    include_hidden: bool,
+    heading_level: int,
+    max_heading_level: int,
+    standalone: bool,
+    custom_css: str | None,
+    command_chain: list[str],
+    generate_toc: bool,
+    flatten_commands: bool,
+    usage_name: str | None,
+    anchors: dict[tuple[str, ...], str],
+) -> str:
+    """Recursive implementation of :func:`generate_html_docs` sharing one 
anchor map."""
+    from cyclopts.help.formatters.html import HtmlFormatter
 
     lines = []
 
@@ -409,12 +465,11 @@
         # Nested command - build full path
         app_name = command_chain[0] if command_chain else app.name[0]
         full_command = " ".join(command_chain)
-        # Create anchor-friendly ID using shared logic
-        anchor_id = generate_anchor(full_command)
+        anchor_id = anchors[tuple(command_chain)]
         effective_level = min(heading_level, max_heading_level)
         lines.append('<section class="command-section">')
         lines.append(
-            f'<h{effective_level} id="{anchor_id}" 
class="command-title"><code>{escape_html(full_command)}</code></h{effective_level}>'
+            f'<h{effective_level} id="{escape_html(anchor_id)}" 
class="command-title"><code>{escape_html(full_command)}</code></h{effective_level}>'
         )
 
     # Add application description
@@ -430,7 +485,7 @@
         lines.append('<div class="table-of-contents">')
         lines.append("<h2>Table of Contents</h2>")
         lines.append("<ul>")
-        _generate_html_toc(lines, app, include_hidden, app_name, "", 0)
+        _generate_html_toc(lines, app, include_hidden, anchors, (app_name,), 
0, recursive=recursive)
         lines.append("</ul>")
         lines.append("</div>")
 
@@ -462,14 +517,13 @@
         include_hidden=include_hidden,
         app_name=app_name,
         command_chain=command_chain,
+        anchors=anchors,
     )
     formatter.reset()
     for group, panel in help_panels_with_groups:
         if not include_hidden and group and not group.show:
             continue
-        # Filter out entries based on include_hidden
-        if not include_hidden:
-            panel.entries = filter_help_entries(app, panel, include_hidden)
+        panel.entries = filter_help_entries(app, panel)
         if panel.entries:  # Only render non-empty panels
             formatter(None, None, panel)
 
@@ -492,15 +546,10 @@
 
             # Generate subcommand documentation
             lines.append('<section class="command-section">')
-            # Create anchor-friendly ID
-            anchor_id = (
-                f"{app_name}-{'-'.join(sub_command_chain[1:])}".lower()
-                if len(sub_command_chain) > 1
-                else f"{app_name}-{name}".lower()
-            )
+            anchor_id = anchors[tuple(sub_command_chain)]
             effective_sub_level = min(sub_heading_level, max_heading_level)
             lines.append(
-                f'<h{effective_sub_level} id="{anchor_id}" 
class="command-title"><code>{escape_html(" 
".join(sub_command_chain))}</code></h{effective_sub_level}>'
+                f'<h{effective_sub_level} id="{escape_html(anchor_id)}" 
class="command-title"><code>{escape_html(" 
".join(sub_command_chain))}</code></h{effective_sub_level}>'
             )
 
             # Get subapp help
@@ -548,12 +597,12 @@
                         include_hidden=include_hidden,
                         app_name=app_name,
                         command_chain=sub_command_chain,
+                        anchors=anchors,
                     )
                     for sub_group, sub_panel in sub_panels:
                         if not include_hidden and sub_group and not 
sub_group.show:
                             continue
-                        if not include_hidden:
-                            sub_panel.entries = filter_help_entries(subapp, 
sub_panel, include_hidden)
+                        sub_panel.entries = filter_help_entries(subapp, 
sub_panel)
                         if sub_panel.entries:
                             sub_formatter(None, None, sub_panel)
 
@@ -574,7 +623,7 @@
                         # Set up context for nested_app, then recurse
                         # The recursive call's app_stack([app]) will stack on 
top of this
                         with nested_app.app_stack([subapp, nested_app]):
-                            nested_docs = generate_html_docs(
+                            nested_docs = _generate_html_docs(
                                 nested_app,
                                 recursive=recursive,
                                 include_hidden=include_hidden,
@@ -586,6 +635,7 @@
                                 generate_toc=False,  # No TOC for nested 
commands
                                 flatten_commands=flatten_commands,
                                 usage_name=usage_name,
+                                anchors=anchors,
                             )
                         lines.append(nested_docs)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.5.2/cyclopts/docs/markdown.py 
new/cyclopts-5.5.3/cyclopts/docs/markdown.py
--- old/cyclopts-5.5.2/cyclopts/docs/markdown.py        2020-02-02 
01:00:00.000000000 +0100
+++ new/cyclopts-5.5.3/cyclopts/docs/markdown.py        2020-02-02 
01:00:00.000000000 +0100
@@ -19,6 +19,7 @@
     should_include_command,
     should_show_commands_list,
     should_show_usage,
+    unique_anchor,
     usage_display_chain,
 )
 
@@ -34,6 +35,7 @@
     exclude_commands: list[str] | None = None,
     parent_path: list[str] | None = None,
     skip_filtered_command: bool = False,
+    recursive: bool = True,
 ) -> list[tuple[str, "App"]]:
     """Recursively collect all commands for table of contents.
 
@@ -62,6 +64,9 @@
             display_name = f"{prefix}{name}" if prefix else name
             commands.append((display_name, subapp))
 
+        if not recursive:
+            continue
+
         # Collect nested commands
         nested_path = parent_path + [name]
         # Always include parent in prefix for nested commands (for correct 
paths)
@@ -90,20 +95,14 @@
     commands : list[tuple[str, "App"]]
         List of (display_name, app) tuples.
     """
-    anchor_counts: dict[str, int] = {}
+    used_anchors: set[str] = set()
 
     for display_name, _app in commands:
         depth = display_name.count(" ") - 1
         indent = "    " * depth
 
         cmd_name = display_name.split()[-1]
-        anchor = generate_anchor(display_name)
-
-        if anchor in anchor_counts:
-            anchor_counts[anchor] += 1
-            anchor = f"{anchor}_{anchor_counts[anchor]}"
-        else:
-            anchor_counts[anchor] = 0
+        anchor = unique_anchor(display_name, used_anchors)
 
         lines.append(f"{indent}- [`{cmd_name}`](#{anchor})")
 
@@ -214,6 +213,7 @@
     exclude_commands: list[str] | None,
     skip_filtered_command: bool,
     lines: list[str],
+    recursive: bool = True,
 ) -> None:
     """Generate and render table of contents.
 
@@ -233,8 +233,9 @@
         Whether to skip the single filtered command in TOC.
     lines : list[str]
         List to append TOC to.
+    recursive : bool
+        Whether nested subcommands get their own sections, and so TOC entries.
     """
-    # Collect all commands recursively for TOC
     toc_commands = _collect_commands_for_toc(
         app,
         include_hidden=include_hidden,
@@ -242,6 +243,7 @@
         commands_filter=commands_filter,
         exclude_commands=exclude_commands,
         skip_filtered_command=skip_filtered_command,
+        recursive=recursive,
     )
     if toc_commands:
         lines.append("## Table of Contents")
@@ -433,7 +435,16 @@
 
     # Generate table of contents if this is the root level and has commands
     if generate_toc and not command_chain and app._commands:
-        _render_toc(app, app_name, include_hidden, commands_filter, 
exclude_commands, skip_current_level, lines)
+        _render_toc(
+            app,
+            app_name,
+            include_hidden,
+            commands_filter,
+            exclude_commands,
+            skip_current_level,
+            lines,
+            recursive=recursive,
+        )
 
     # Get help panels for the current app (skip if skipping current level)
     # Use app_stack context - if caller set up parent context, it will be 
stacked
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.5.2/cyclopts/help/formatters/html.py 
new/cyclopts-5.5.3/cyclopts/help/formatters/html.py
--- old/cyclopts-5.5.2/cyclopts/help/formatters/html.py 2020-02-02 
01:00:00.000000000 +0100
+++ new/cyclopts-5.5.3/cyclopts/help/formatters/html.py 2020-02-02 
01:00:00.000000000 +0100
@@ -25,6 +25,9 @@
         The root application name for generating anchor IDs.
     command_chain : list[str]
         The current command chain for generating anchor IDs.
+    anchors : dict[tuple[str, ...], str] | None
+        Mapping of command paths to de-duplicated anchor IDs; must contain 
every linked command.
+        If None (default), anchors come from 
:func:`~cyclopts.docs.base.generate_anchor`.
     """
 
     def __init__(
@@ -33,11 +36,13 @@
         include_hidden: bool = False,
         app_name: str | None = None,
         command_chain: list[str] | None = None,
+        anchors: dict[tuple[str, ...], str] | None = None,
     ):
         self.heading_level = heading_level
         self.include_hidden = include_hidden
         self.app_name = app_name
         self.command_chain = command_chain or []
+        self.anchors = anchors
         self._output = io.StringIO()
 
     def reset(self) -> None:
@@ -105,6 +110,8 @@
         if not entries:
             return
 
+        from cyclopts.docs.base import generate_anchor
+
         # Use list format instead of table
         self._output.write('<ul class="commands-list">\n')
 
@@ -115,12 +122,9 @@
             elif self.app_name:
                 # Generate anchor link
                 primary_name, aliases = names[0], names[1:]
-                if self.command_chain:
-                    full_chain = self.command_chain + [primary_name]
-                    anchor_id = 
f"{self.app_name}-{'-'.join(full_chain[1:])}".lower()
-                else:
-                    anchor_id = f"{self.app_name}-{primary_name}".lower()
-                name_html = f'<a 
href="#{anchor_id}"><code>{escape_html(primary_name)}</code></a>'
+                chain = (self.app_name, *self.command_chain[1:], primary_name)
+                anchor_id = generate_anchor(" ".join(chain)) if self.anchors 
is None else self.anchors[chain]
+                name_html = f'<a 
href="#{escape_html(anchor_id)}"><code>{escape_html(primary_name)}</code></a>'
                 if aliases:
                     aliases_str = ", ".join(escape_html(n) for n in aliases)
                     name_html = f"{name_html} ({aliases_str})"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cyclopts-5.5.2/cyclopts/types.py 
new/cyclopts-5.5.3/cyclopts/types.py
--- old/cyclopts-5.5.2/cyclopts/types.py        2020-02-02 01:00:00.000000000 
+0100
+++ new/cyclopts-5.5.3/cyclopts/types.py        2020-02-02 01:00:00.000000000 
+0100
@@ -330,7 +330,7 @@
     if _email_validator.regex is None:  # pyright: 
ignore[reportFunctionMemberAccess]
         import re
 
-        _email_validator.regex = 
re.compile(r"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$")  # pyright: 
ignore[reportFunctionMemberAccess]
+        _email_validator.regex = 
re.compile(r"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\Z")  # pyright: 
ignore[reportFunctionMemberAccess]
 
     if not _email_validator.regex.match(value):  # pyright: 
ignore[reportFunctionMemberAccess]
         raise ValueError(f"Invalid email: {value}")
@@ -355,7 +355,7 @@
             r"localhost|"  # localhost
             r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})"  # IP
             r"(?::\d+)?"  # port
-            r"(?:\/\S*)?$",  # path, query string, fragment
+            r"(?:\/\S*)?\Z",  # path, query string, fragment
             re.IGNORECASE,
         )
 

Reply via email to