Closed candleindark closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 91.83%. Comparing base (
be57e13
) to head (2fdc912
).:exclamation: There is a different number of reports uploaded between BASE (be57e13) and HEAD (2fdc912). Click for more details.
HEAD has 121 uploads less than BASE
| Flag | BASE (be57e13) | HEAD (2fdc912) | |------|------|------| |unittests|151|30|
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
My guess of the intention for
BaseType.identifier
is an object either validates to anAnyHttpUrl
or astr
matching the pattern ofr"^[a-zA-Z0-9-]+:[a-zA-Z0-9-/\._]+$"
. If my guess is correct, the type annotation should be corrected to the proposed change in this PR.The current type annotation of
BaseType.identifier
has problems exhibited by theFoo.identifier
from the following example (Baz.identifier
exhibits the solution proposed by this PR).Essentially, the current annotation fails to validate any
AnyHttpUrl
object and any HTTP URL, as astr
, that contains a special character.