diff --git a/Python.Console/Program.cs b/Python.Console/Program.cs index 3aebecc..b2d4dff 100644 --- a/Python.Console/Program.cs +++ b/Python.Console/Program.cs @@ -24,5 +24,6 @@ static void RunHelloWorld(IPythonEnvironment env) { - var helloWorld = env.HelloWorld(); + var helloWorld = env.HelloWorld(); + helloWorld.FormatName("Python"); } \ No newline at end of file diff --git a/Python.Console/Python.Console.csproj b/Python.Console/Python.Console.csproj index 9969343..ab11ceb 100644 --- a/Python.Console/Python.Console.csproj +++ b/Python.Console/Python.Console.csproj @@ -12,4 +12,8 @@ + + + + diff --git a/Python.Core/Python.Core.csproj b/Python.Core/Python.Core.csproj index ca767cf..5c5631b 100644 --- a/Python.Core/Python.Core.csproj +++ b/Python.Core/Python.Core.csproj @@ -8,8 +8,14 @@ - + Always - + + + + + + + diff --git a/Python.Core/hello_world.py b/Python.Core/hello_world.py index 3863445..8f6d254 100644 --- a/Python.Core/hello_world.py +++ b/Python.Core/hello_world.py @@ -1,2 +1,2 @@ -def format_name(name, max_length): +def format_name(name: str, max_length: int = 100) -> str: return "Hello {}".format(name.capitalize())[:max_length] \ No newline at end of file