Skip to content

Commit 8587b86

Browse files
committed
fix: restore _all_fields but deprecated
1 parent 41c8be9 commit 8587b86

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tableauserverclient/server/request_options.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
22
from typing import Optional
3+
import warnings
34

45
from typing_extensions import Self
56

@@ -66,6 +67,19 @@ def __init__(self, pagenumber=1, pagesize=None):
6667
# This is private until we expand all of our parsers to handle the extra fields
6768
self.all_fields = False
6869

70+
@property
71+
def _all_fields(self) -> bool:
72+
return self.all_fields
73+
74+
@_all_fields.setter
75+
def _all_fields(self, value):
76+
warnings.warn(
77+
"Directly setting _all_fields is deprecated, please use the all_fields property instead.",
78+
DeprecationWarning,
79+
)
80+
self.all_fields = value
81+
82+
6983
def get_query_params(self) -> dict:
7084
params = {}
7185
if self.sort and len(self.sort) > 0:

0 commit comments

Comments
 (0)