Skip to content

Commit f1129b9

Browse files
vistartclaude
andcommitted
style(sqlserver): type COLLATE validation hook parameter
Annotate validate_collation_name with CollationName so the SQL Server dialect hook documents the structured collation argument it receives. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent cf75ffb commit f1129b9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/rhosocial/activerecord/backend/impl/sqlserver

‎src/rhosocial/activerecord/backend/impl/sqlserver/dialect.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787

8888
if TYPE_CHECKING:
8989
from rhosocial.activerecord.backend.expression import bases
90+
from rhosocial.activerecord.backend.expression.collation import CollationName
9091
from rhosocial.activerecord.backend.expression.advanced_functions import ArrayExpression, OrderedSetAggregation, JSONExpression
9192
from rhosocial.activerecord.backend.expression.graph import MatchClause
9293
from rhosocial.activerecord.backend.expression.query_parts import (
@@ -277,7 +278,7 @@ def supports_collate_expression(self) -> bool:
277278
"""SQL Server supports expression-level COLLATE."""
278279
return True
279280

280-
def validate_collation_name(self, collation) -> str:
281+
def validate_collation_name(self, collation: "CollationName") -> str:
281282
"""Validate SQL Server collation names and return their SQL representation."""
282283
if collation.schema is not None:
283284
raise UnsupportedFeatureError(self.name, "schema-qualified COLLATE")

0 commit comments

Comments
 (0)