tools/metrics/structured/sync/model_util.py:55: error: Argument 2 to "fullmatch" has incompatible type "str | None"; expected "str"  [arg-type]
tools/metrics/structured/sync/model_util.py:84: error: Item "None" of "str | None" has no attribute "strip"  [union-attr]
tools/metrics/structured/sync/model_util.py:91: error: Incompatible default for argument "regex" (default has type "None", argument has type "str")  [assignment]
tools/metrics/structured/sync/model_util.py:91: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
tools/metrics/structured/sync/model_util.py:91: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
tools/metrics/structured/sync/model_util.py:110: error: Incompatible return value type (got "None", expected "str")  [return-value]
tools/metrics/structured/sync/model_util.py:122: error: Incompatible default for argument "regex" (default has type "None", argument has type "str")  [assignment]
tools/metrics/structured/sync/model_util.py:122: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
tools/metrics/structured/sync/model_util.py:122: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
tools/metrics/structured/sync/model_util.py:141: error: Incompatible return value type (got "None", expected "list[str]")  [return-value]
tools/metrics/structured/sync/model_util.py:242: error: Argument 2 to "fullmatch" has incompatible type "str | None"; expected "str"  [arg-type]
tools/metrics/structured/sync/model_util.py:362: error: Argument 2 to "check_names_unique" has incompatible type "list[str | None]"; expected "list[str]"  [arg-type]
tools/metrics/structured/sync/model.py:110: error: Argument 2 to "match" has incompatible type "str | None"; expected "str"  [arg-type]
tools/metrics/structured/sync/model.py:162: error: Incompatible types in assignment (expression has type "str | None", variable has type "int")  [assignment]
tools/metrics/structured/sync/model.py:179: error: Incompatible types in assignment (expression has type "str | None", variable has type "str")  [assignment]
tools/metrics/structured/sync/model.py:348: error: Argument 1 to "has_enum" of "Project" has incompatible type "str | None"; expected "str"  [arg-type]
tools/metrics/structured/sync/model.py:357: error: Argument 1 to "int" has incompatible type "str | None"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc"  [arg-type]
tools/metrics/structured/sync/model.py:369: error: Unsupported right operand type for in ("str | None")  [operator]
tools/metrics/common/models.py:48: error: Incompatible types in assignment (expression has type "Comment | DocumentType | Element | ProcessingInstruction | Text | Notation | None", variable has type "Comment")  [assignment]
tools/metrics/common/models.py:66: error: Need type annotation for "comments" (hint: "comments: list[<type>] = ...")  [var-annotated]
tools/metrics/common/models.py:67: error: Incompatible types in assignment (expression has type "Comment | DocumentType | Element | ProcessingInstruction | Text | Notation | None", variable has type "Element")  [assignment]
tools/metrics/common/models.py:87: error: Need type annotation for "comments" (hint: "comments: list[<type>] = ...")  [var-annotated]
tools/metrics/common/models.py:88: error: Incompatible types in assignment (expression has type "Comment | DocumentType | Element | ProcessingInstruction | Text | Notation | None", variable has type "Element")  [assignment]
tools/metrics/common/models.py:109: error: Invalid self argument "Node" to attribute function "appendChild" with type "Callable[[DocumentFragment | Attr | Element | Document, _ChildNodePlusFragmentVar], _ChildNodePlusFragmentVar]"  [misc]
tools/metrics/common/models.py:121: error: List comprehension has incompatible type List[Element | ProcessingInstruction | Comment | Text | CDATASection]; expected List[Element]  [misc]
tools/metrics/common/models.py:150: error: Incompatible default for argument "extra_newlines" (default has type "None", argument has type "bool")  [assignment]
tools/metrics/common/models.py:150: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
tools/metrics/common/models.py:150: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
tools/metrics/common/models.py:219: error: Invalid self argument "Node" to attribute function "appendChild" with type "Callable[[DocumentFragment | Attr | Element | Document, _ChildNodePlusFragmentVar], _ChildNodePlusFragmentVar]"  [misc]
tools/metrics/common/models.py:277: error: Incompatible types in assignment (expression has type "str", target has type "list[str]")  [assignment]
tools/metrics/common/models.py:372: error: Unpacking a string is disallowed  [misc]
tools/metrics/common/models.py:372: error: Cannot determine type of "a"  [has-type]
tools/metrics/common/models.py:394: error: Unpacking a string is disallowed  [misc]
tools/metrics/common/models.py:395: error: Cannot determine type of "attr"  [has-type]
tools/metrics/common/models.py:396: error: Cannot determine type of "attr"  [has-type]
tools/metrics/common/models.py:396: error: Cannot determine type of "attr_type"  [has-type]
tools/metrics/common/models.py:397: error: Cannot determine type of "attr_re"  [has-type]
tools/metrics/common/models.py:398: error: Cannot determine type of "attr"  [has-type]
tools/metrics/common/models.py:399: error: Cannot determine type of "attr_re"  [has-type]
tools/metrics/common/models.py:399: error: Argument 2 to "match" has incompatible type "list[str] | str"; expected "str"  [arg-type]
tools/metrics/common/models.py:401: error: Cannot determine type of "attr"  [has-type]
tools/metrics/common/models.py:401: error: Cannot determine type of "attr_re"  [has-type]
tools/metrics/common/models.py:406: error: Invalid index type "bool | None" for "dict[str, list[str]]"; expected type "str"  [index]
tools/metrics/common/models.py:406: error: Incompatible types in assignment (expression has type "str", target has type "list[str]")  [assignment]
tools/metrics/common/models.py:409: error: Invalid index type "bool | None" for "dict[str, list[str]]"; expected type "str"  [index]
tools/metrics/common/models.py:411: error: Incompatible types in assignment (expression has type "Comment | DocumentType | Element | ProcessingInstruction | Text | Notation | None", variable has type "Element | ProcessingInstruction | Comment | Text | None")  [assignment]
tools/metrics/common/models.py:414: error: Invalid index type "bool | None" for "dict[str, list[str]]"; expected type "str"  [index]
tools/metrics/common/models.py:415: error: Argument 1 to "__delitem__" of "dict" has incompatible type "bool | None"; expected "str"  [arg-type]
tools/metrics/common/models.py:417: error: Incompatible types in assignment (expression has type "ChildType", variable has type "Element | ProcessingInstruction | Comment | Text | None")  [assignment]
tools/metrics/common/models.py:418: error: "None" has no attribute "node_type"  [attr-defined]
tools/metrics/common/models.py:419: error: "None" has no attribute "multiple"  [attr-defined]
tools/metrics/common/models.py:420: error: "None" has no attribute "attr"  [attr-defined]
tools/metrics/common/models.py:421: error: "None" has no attribute "node_type"  [attr-defined]
tools/metrics/common/models.py:423: error: "None" has no attribute "attr"  [attr-defined]
tools/metrics/common/models.py:423: error: "None" has no attribute "node_type"  [attr-defined]
tools/metrics/common/models.py:445: error: Unpacking a string is disallowed  [misc]
tools/metrics/common/models.py:446: error: Cannot determine type of "attr"  [has-type]
tools/metrics/common/models.py:447: error: Cannot determine type of "attr"  [has-type]
tools/metrics/common/models.py:488: error: Unpacking a string is disallowed  [misc]
tools/metrics/common/models.py:488: error: Cannot determine type of "attr"  [has-type]
tools/metrics/common/models.py:508: error: Argument 1 to "update" of "MutableMapping" has incompatible type "dict[str, NodeType]"; expected "SupportsKeysAndGetItem[str, ObjectNodeType]"  [arg-type]
tools/metrics/common/models.py:509: error: Incompatible return value type (got "dict[str, ObjectNodeType]", expected "dict[str, NodeType]")  [return-value]
tools/metrics/common/models.py:509: note: "dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
tools/metrics/common/models.py:509: note: Consider using "Mapping" instead, which is covariant in the value type
tools/metrics/common/models.py:509: note: Perhaps you need a type annotation for "types"? Suggestion: "dict[str, NodeType]"
tools/metrics/common/models.py:555: error: Argument 1 to "parseString" has incompatible type "Document | Element[str] | str"; expected "str | Buffer"  [arg-type]
tools/metrics/ukm/ukm_model.py:169: error: Incompatible return value type (got "Document | str", expected "str")  [return-value]
tools/metrics/actions/extract_actions.py:37: error: Cannot find implementation or library stub for module named "HTMLParser"  [import-not-found]
tools/metrics/actions/extract_actions.py:37: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
tools/metrics/actions/extract_actions.py:715: error: Value of type variable "_DocumentChildrenVar" of "appendChild" of "Document" cannot be "Node"  [type-var]
tools/metrics/actions/extract_actions.py:742: error: Need type annotation for "actions" (hint: "actions: set[<type>] = ...")  [var-annotated]
tools/metrics/actions/extract_actions_test.py:10: error: Skipping analyzing "parameterized": module is installed, but missing library stubs or py.typed marker  [import-untyped]
tools/metrics/actions/extract_actions_test.py:204: error: Name "TestCase" is not defined  [name-defined]
tools/metrics/actions/extract_actions_test.py:256: error: Argument "generated_actions_names" to "UpdateXml" has incompatible type "list[str]"; expected "set[str]"  [arg-type]
