diff --git a/REFERENCE.md b/REFERENCE.md index def63d6a..7369552e 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -1208,14 +1208,5 @@ Alias of `Pattern[/^(<|>|<=|>=|==) [0-9]*(\.[0-9]+)*$/, /\Alatest\Z/]` Match all valid versions for python -Alias of - -```puppet -Variant[Integer, Pattern[ - /\A(python)?[0-9](\.?[0-9])*/, - /\Apypy\Z/, - /\Asystem\Z/, - /\Arh-python[0-9]{2}(?:-python)?\Z/ - ]] -``` +Alias of `Pattern[/\A(python)?[0-9](\.?[0-9])*/, /\Apypy\Z/, /\Asystem\Z/, /\Arh-python[0-9]{2}(?:-python)?\Z/]` diff --git a/types/version.pp b/types/version.pp index 075d3587..5bbcaaa8 100644 --- a/types/version.pp +++ b/types/version.pp @@ -1,10 +1,8 @@ # @summary Match all valid versions for python # -type Python::Version = Variant[Integer, - Pattern[ - /\A(python)?[0-9](\.?[0-9])*/, - /\Apypy\Z/, - /\Asystem\Z/, - /\Arh-python[0-9]{2}(?:-python)?\Z/ - ] +type Python::Version = Pattern[ + /\A(python)?[0-9](\.?[0-9])*/, + /\Apypy\Z/, + /\Asystem\Z/, + /\Arh-python[0-9]{2}(?:-python)?\Z/ ]