diff --git a/lib/ansible/template/__init__.py b/lib/ansible/template/__init__.py index 63ce783140b..0daaf9263a4 100644 --- a/lib/ansible/template/__init__.py +++ b/lib/ansible/template/__init__.py @@ -583,8 +583,8 @@ class AnsibleEnvironment(NativeEnvironment): def compile( # type: ignore[override] self, source: str, - name: t.Optional[str] = None, - filename: t.Optional[str] = None, + name: str | None = None, + filename: str | None = None, raw: bool = False, defer_init: bool = False, ) -> CodeType: