Skip to content

Commit e3410b2

Browse files
committed
CompileCtx.lkt_context: make the method static
1 parent 3b63ea1 commit e3410b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

langkit/compile_context.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,8 @@ def actual_version(self) -> str:
852852
def actual_build_date(self) -> str:
853853
return self.build_date or "undefined"
854854

855-
def lkt_context(self, lkt_node: L.LktNode) -> AbstractContextManager[None]:
855+
@staticmethod
856+
def lkt_context(lkt_node: L.LktNode) -> AbstractContextManager[None]:
856857
"""
857858
Context manager to set the diagnostic context to the given node.
858859

0 commit comments

Comments
 (0)