@@ -1163,6 +1163,10 @@ impl<'a> Summary<'a> {
1163
1163
alias_module : Option < String > ,
1164
1164
}
1165
1165
1166
+ let file_header = "# This file is automatically generated by componentize-py
1167
+ # It is not intended for manual editing.
1168
+ " ;
1169
+
1166
1170
let mut interface_imports = HashMap :: < InterfaceId , Definitions > :: new ( ) ;
1167
1171
let mut interface_exports = HashMap :: < InterfaceId , Definitions > :: new ( ) ;
1168
1172
let mut world_imports = Definitions :: default ( ) ;
@@ -1799,7 +1803,7 @@ Result = peer.types.Result
1799
1803
1800
1804
write ! (
1801
1805
file,
1802
- "{python_imports}
1806
+ "{file_header}{ python_imports}
1803
1807
1804
1808
S = TypeVar('S')
1805
1809
@dataclass
@@ -1853,7 +1857,7 @@ Result = Union[Ok[T], Err[E]]
1853
1857
1854
1858
write ! (
1855
1859
file,
1856
- "{docs}{python_imports}
1860
+ "{file_header}{ docs}{python_imports}
1857
1861
from ..types import Result, Ok, Err, Some
1858
1862
{imports}
1859
1863
{types}
@@ -1884,7 +1888,7 @@ from ..types import Result, Ok, Err, Some
1884
1888
1885
1889
write ! (
1886
1890
file,
1887
- "{docs}{python_imports}
1891
+ "{file_header}{ docs}{python_imports}
1888
1892
from ..types import Result, Ok, Err, Some
1889
1893
{imports}
1890
1894
{types}
@@ -1931,7 +1935,7 @@ class {camel}(Protocol):
1931
1935
1932
1936
write ! (
1933
1937
init,
1934
- "{python_imports}
1938
+ "{file_header}{ python_imports}
1935
1939
from ..types import Result, Ok, Err, Some
1936
1940
{imports}
1937
1941
{protocols}
@@ -1983,7 +1987,7 @@ from ..types import Result, Ok, Err, Some
1983
1987
1984
1988
write ! (
1985
1989
file,
1986
- "{docs}{python_imports}
1990
+ "{file_header}{ docs}{python_imports}
1987
1991
from .types import Result, Ok, Err, Some
1988
1992
{imports}
1989
1993
{type_exports}
0 commit comments