<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 3: 'Number' does not work properly</title><link href="https://sourceforge.net/p/typecheck/bugs/3/" rel="alternate"/><link href="https://sourceforge.net/p/typecheck/bugs/3/feed.atom" rel="self"/><id>https://sourceforge.net/p/typecheck/bugs/3/</id><updated>2008-12-07T21:50:09Z</updated><subtitle>Recent changes to 3: 'Number' does not work properly</subtitle><entry><title>'Number' does not work properly</title><link href="https://sourceforge.net/p/typecheck/bugs/3/" rel="alternate"/><published>2008-12-07T21:50:09Z</published><updated>2008-12-07T21:50:09Z</updated><author><name>Coutinho</name><uri>https://sourceforge.net/u/tiagocoutinho/</uri></author><id>https://sourceforge.netbbddc537402d6f8478fbc0815c12759c901aaf6c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br /&gt;
I am using typecheck 0.3.5&lt;br /&gt;
Python 2.5&lt;br /&gt;
Linux Ubuntu 8.10&lt;/p&gt;
&lt;p&gt;I tried this example:&lt;/p&gt;
&lt;p&gt;import typecheck&lt;br /&gt;
from typecheck import accepts&lt;br /&gt;
from typecheck.typeclasses import String, Number&lt;/p&gt;
&lt;p&gt;@accepts(Number)&lt;br /&gt;
def f(a):&lt;br /&gt;
print a&lt;/p&gt;
&lt;p&gt;if __name__ == "__main__":&lt;br /&gt;
f("error")&lt;/p&gt;
&lt;p&gt;instead of getting a type exception the function is executed successfully.&lt;/p&gt;
&lt;p&gt;Cheers&lt;br /&gt;
Tiago&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>