It is a given in this class. By enforcing constraints here, you force
implementations that inherit from this class into also reimplementing this
method.
On Mar 5, 2014 8:11 AM, "jamesob" <notifications@github.com> wrote:

> In src/pyotp/hotp.py:
>
> >      def verify(self, otp, counter):
> >          """
> >          Verifies the OTP passed in against the current time OTP
> >          @param [String/Integer] otp the OTP to check against
> >          @param [Integer] counter the counter of the OTP
> >          """
> > +        try:
> > +            otp = int(otp)
>
> @kislyuk <https://github.com/kislyuk> but it is a given that OTPs are
> numeric in this library. Check out generate_otp. Re: breaking changes:
> see my latest comment in the main thread.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nathforge/pyotp/pull/1/files#r10305408>
> .
>