@@ -56,19 +56,11 @@ def resolve_async(self, node: JSONPathMatch) -> AsyncIterable[JSONPathMatch]:
5656class PropertySelector (JSONPathSelector ):
5757 """A shorthand or bracketed property selector."""
5858
59- __slots__ = ("name" , "shorthand" )
59+ __slots__ = ("name" ,)
6060
61- def __init__ (
62- self ,
63- * ,
64- env : JSONPathEnvironment ,
65- token : Token ,
66- name : str ,
67- shorthand : bool ,
68- ) -> None :
61+ def __init__ (self , * , env : JSONPathEnvironment , token : Token , name : str ) -> None :
6962 super ().__init__ (env = env , token = token )
7063 self .name = name
71- self .shorthand = shorthand
7264
7365 def __str__ (self ) -> str :
7466 return canonical_string (self .name )
@@ -190,13 +182,10 @@ class KeysSelector(JSONPathSelector):
190182 NOTE: This is a non-standard selector.
191183 """
192184
193- __slots__ = ("shorthand" , )
185+ __slots__ = ()
194186
195- def __init__ (
196- self , * , env : JSONPathEnvironment , token : Token , shorthand : bool
197- ) -> None :
187+ def __init__ (self , * , env : JSONPathEnvironment , token : Token ) -> None :
198188 super ().__init__ (env = env , token = token )
199- self .shorthand = shorthand
200189
201190 def __str__ (self ) -> str :
202191 return self .env .keys_selector_token
@@ -298,13 +287,7 @@ async def resolve_async(self, node: JSONPathMatch) -> AsyncIterable[JSONPathMatc
298287class WildSelector (JSONPathSelector ):
299288 """Select all items from a sequence/array or values from a mapping/object."""
300289
301- __slots__ = ("shorthand" ,)
302-
303- def __init__ (
304- self , * , env : JSONPathEnvironment , token : Token , shorthand : bool
305- ) -> None :
306- super ().__init__ (env = env , token = token )
307- self .shorthand = shorthand
290+ __slots__ = ()
308291
309292 def __str__ (self ) -> str :
310293 return "*"
0 commit comments