From 1c52c093828132e9155ab460a8da2e5782e3f075 Mon Sep 17 00:00:00 2001 From: Stanislav Pankevich Date: Fri, 14 Nov 2025 12:10:20 +0100 Subject: [PATCH] chore(backend/sdoc_source_code): Function class: require explicit arguments for better readability The upcoming PR https://github.com/strictdoc-project/strictdoc/pull/2555 adds some more variables to this class, and it feels like it is time to enforce the explicit argument names every time this class's constructor is called. This should help with avoiding the issues when a wrong position argument can be set in place of the right one. --- strictdoc/backend/sdoc_source_code/models/function.py | 1 + 1 file changed, 1 insertion(+) diff --git a/strictdoc/backend/sdoc_source_code/models/function.py b/strictdoc/backend/sdoc_source_code/models/function.py index 9ffbb5d7a..476d3c3eb 100644 --- a/strictdoc/backend/sdoc_source_code/models/function.py +++ b/strictdoc/backend/sdoc_source_code/models/function.py @@ -15,6 +15,7 @@ class Function: def __init__( self, + *, parent: Any, name: str, display_name: str,