##// END OF EJS Templates
typing: explicitly type some `mercurial.util` eol code to avoid @overload...
typing: explicitly type some `mercurial.util` eol code to avoid @overload Unlike the previous commit, this makes a material difference in the generated stub file- the `pycompat.identity()` aliases generated an @overload like this: @overload def fromnativeeol(a: _T0) -> _T0: ... ... which might fail to detect a bad argument, like str. This drops the @overload for the 3 related methods, so there's a single definition for each. The `typelib.BinaryIO_Proxy` is used for subclassing (the same as was done in 8147abc05794), so that it is a `BinaryIO` type during type checking, but still inherits `object` at runtime. That way, we don't need to implement unused abstract methods.

File last commit:

r26421:4b0fc75f default
r52614:ed280858 default
Show More
error.tmpl
10 lines | 241 B | application/x-cheetah | CheetahLexer
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 {header}
<title>Error</title>
<description>Error</description>
<item>
<title>Error</title>
<description>{error|escape}</description>
Matt Mackall
urls: bulk-change primary website URLs
r26421 <guid>https://mercurial-scm.org/#error</guid>
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 </item>
</channel>
</rss>