@@ -26,7 +26,7 @@ class DescribeHyperlink:
2626 ],
2727 )
2828 def it_knows_the_hyperlink_address (
29- self , hlink_cxml : str , expected_value : str , fake_parent : t .StoryChild
29+ self , hlink_cxml : str , expected_value : str , fake_parent : t .ProvidesStoryPart
3030 ):
3131 hlink = cast (CT_Hyperlink , element (hlink_cxml ))
3232 hyperlink = Hyperlink (hlink , fake_parent )
@@ -44,7 +44,7 @@ def it_knows_the_hyperlink_address(
4444 ],
4545 )
4646 def it_knows_whether_it_contains_a_page_break (
47- self , hlink_cxml : str , expected_value : bool , fake_parent : t .StoryChild
47+ self , hlink_cxml : str , expected_value : bool , fake_parent : t .ProvidesStoryPart
4848 ):
4949 hlink = cast (CT_Hyperlink , element (hlink_cxml ))
5050 hyperlink = Hyperlink (hlink , fake_parent )
@@ -59,7 +59,7 @@ def it_knows_whether_it_contains_a_page_break(
5959 ],
6060 )
6161 def it_knows_the_link_fragment_when_there_is_one (
62- self , hlink_cxml : str , expected_value : str , fake_parent : t .StoryChild
62+ self , hlink_cxml : str , expected_value : str , fake_parent : t .ProvidesStoryPart
6363 ):
6464 hlink = cast (CT_Hyperlink , element (hlink_cxml ))
6565 hyperlink = Hyperlink (hlink , fake_parent )
@@ -78,7 +78,7 @@ def it_knows_the_link_fragment_when_there_is_one(
7878 ],
7979 )
8080 def it_provides_access_to_the_runs_it_contains (
81- self , hlink_cxml : str , count : int , fake_parent : t .StoryChild
81+ self , hlink_cxml : str , count : int , fake_parent : t .ProvidesStoryPart
8282 ):
8383 hlink = cast (CT_Hyperlink , element (hlink_cxml ))
8484 hyperlink = Hyperlink (hlink , fake_parent )
@@ -100,7 +100,7 @@ def it_provides_access_to_the_runs_it_contains(
100100 ],
101101 )
102102 def it_knows_the_visible_text_of_the_link (
103- self , hlink_cxml : str , expected_text : str , fake_parent : t .StoryChild
103+ self , hlink_cxml : str , expected_text : str , fake_parent : t .ProvidesStoryPart
104104 ):
105105 hlink = cast (CT_Hyperlink , element (hlink_cxml ))
106106 hyperlink = Hyperlink (hlink , fake_parent )
@@ -122,7 +122,7 @@ def it_knows_the_visible_text_of_the_link(
122122 ],
123123 )
124124 def it_knows_the_full_url_for_web_addresses (
125- self , hlink_cxml : str , expected_value : str , fake_parent : t .StoryChild
125+ self , hlink_cxml : str , expected_value : str , fake_parent : t .ProvidesStoryPart
126126 ):
127127 hlink = cast (CT_Hyperlink , element (hlink_cxml ))
128128 hyperlink = Hyperlink (hlink , fake_parent )
@@ -132,7 +132,7 @@ def it_knows_the_full_url_for_web_addresses(
132132 # -- fixtures --------------------------------------------------------------------
133133
134134 @pytest .fixture
135- def fake_parent (self , story_part : Mock , rel : Mock ) -> t .StoryChild :
135+ def fake_parent (self , story_part : Mock , rel : Mock ) -> t .ProvidesStoryPart :
136136 class StoryChild :
137137 @property
138138 def part (self ) -> StoryPart :
0 commit comments